Browse Source

fix(nc-gui): handle handleSelectOption fun condition properly

pull/10015/head
Ramesh Mane 2 days ago
parent
commit
5e8b194712
  1. 2
      packages/nc-gui/components/nc/List/index.vue

2
packages/nc-gui/components/nc/List/index.vue

@ -196,7 +196,7 @@ const handleResetHoverEffect = (clearActiveOption = false, newActiveIndex?: numb
* It updates the model value, emits a change event, and optionally closes the dropdown.
*/
const handleSelectOption = (option: NcListItemType, index?: number) => {
if (!option?.[optionValueKey] || option?.disabled) return
if (!ncIsObject(option) || !(optionValueKey in option) || option.disabled) return
if (index !== undefined) {
activeOptionIndex.value = index

Loading…
Cancel
Save