Browse Source

fix(gui): keep select as disabled until the cell become active or editable

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4957/head
Pranav C 2 years ago
parent
commit
ad7a2d6610
  1. 2
      packages/nc-gui/components/cell/MultiSelect.vue

2
packages/nc-gui/components/cell/MultiSelect.vue

@ -289,7 +289,7 @@ const onTagClick = (e: Event, onClose: Function) => {
:show-arrow="hasEditRoles && !readOnly && (editable || (active && vModel.length === 0))"
:open="isOpen && (active || editable)"
@update:open="isOpen = $event"
:disabled="readOnly"
:disabled="readOnly || !(active || editable)"
:class="{ '!ml-[-8px]': readOnly, 'caret-transparent': !hasEditRoles }"
:dropdown-class-name="`nc-dropdown-multi-select-cell ${isOpen ? 'active' : ''}`"
@search="search"

Loading…
Cancel
Save