diff --git a/src/runtime/composables/useButtonGroup.ts b/src/runtime/composables/useButtonGroup.ts index 5887b70e9b..ac328f9713 100644 --- a/src/runtime/composables/useButtonGroup.ts +++ b/src/runtime/composables/useButtonGroup.ts @@ -52,9 +52,7 @@ export function useInjectButtonGroup ({ ui, props }: { ui: any, props: any }) { parent = parent.parent } - const positionInGroup = computed(() => { - return groupContext?.value.children.indexOf(instance) - }) + const positionInGroup = computed(() => groupContext?.value.children.indexOf(instance)) onMounted(() => { groupContext?.value.register(instance) })