Skip to content

Commit

Permalink
fixes #1553
Browse files Browse the repository at this point in the history
  • Loading branch information
ucyildirim authored Jan 11, 2025
1 parent 194bf4b commit 505343b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/radix-vue/src/ToggleGroup/ToggleGroupItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const props = withDefaults(defineProps<ToggleGroupItemProps>(), {
const rootContext = injectToggleGroupRootContext()
const disabled = computed(() => rootContext.disabled?.value || props.disabled)
const pressed = computed(() => rootContext.modelValue.value?.includes(props.value))
const isPressed = computed(() => {
return rootContext.isSingle.value
Expand All @@ -39,7 +38,7 @@ const { forwardRef } = useForwardExpose()
:is="rootContext.rovingFocus.value ? RovingFocusItem : Primitive"
as-child
:focusable="!disabled"
:active="pressed"
:active="isPressed"
>
<Toggle
v-bind="props"
Expand Down

0 comments on commit 505343b

Please sign in to comment.