mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 06:21:46 +01:00
fix(DropdownMenu/ContextMenu): correct bindings of checkbox items (#2921)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user