fix(DropdownMenu/ContextMenu): correct bindings of checkbox items (#2921)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Everton
2024-12-16 11:13:36 -03:00
committed by GitHub
parent 6fb426fc17
commit 4c5a4fb526
2 changed files with 4 additions and 4 deletions

View File

@@ -130,11 +130,11 @@ const groups = computed(() => props.items?.length ? (Array.isArray(props.items[0
</DropdownMenu.Sub>
<DropdownMenu.CheckboxItem
v-else-if="item.type === 'checkbox'"
:checked="item.checked"
:model-value="item.checked"
:disabled="item.disabled"
:text-value="get(item, props.labelKey as string)"
:class="ui.item({ class: [uiOverride?.item, item.class], color: item?.color })"
@update:checked="item.onUpdateChecked"
@update:model-value="item.onUpdateChecked"
@select="item.onSelect"
>
<ReuseItemTemplate :item="item" :index="index" />