Browse Source

Merge pull request #4490 from nocodb/fix/show-search

fix(nc-gui): set show-search always true
pull/4497/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
e5f7b50635
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/components/cell/MultiSelect.vue
  2. 2
      packages/nc-gui/components/cell/SingleSelect.vue

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

@ -271,8 +271,8 @@ const onTagClick = (e: Event, onClose: Function) => {
class="w-full" class="w-full"
:bordered="false" :bordered="false"
clear-icon clear-icon
show-search
:show-arrow="!readOnly" :show-arrow="!readOnly"
:show-search="active || editable"
:open="isOpen && (active || editable)" :open="isOpen && (active || editable)"
:disabled="readOnly" :disabled="readOnly"
:class="{ '!ml-[-8px]': readOnly }" :class="{ '!ml-[-8px]': readOnly }"

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

@ -189,7 +189,7 @@ const toggleMenu = (e: Event) => {
:disabled="readOnly" :disabled="readOnly"
:show-arrow="!readOnly && (active || editable || vModel === null)" :show-arrow="!readOnly && (active || editable || vModel === null)"
:dropdown-class-name="`nc-dropdown-single-select-cell ${isOpen ? 'active' : ''}`" :dropdown-class-name="`nc-dropdown-single-select-cell ${isOpen ? 'active' : ''}`"
:show-search="active || editable" show-search
@select="isOpen = false" @select="isOpen = false"
@keydown.stop @keydown.stop
@search="search" @search="search"

Loading…
Cancel
Save