π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix: avoid keyboard events when we press backspace in templates dropdown search input
Ramesh Mane2241b5e2f91d
diff --git a/packages/nc-gui/components/nc/List/index.vue b/packages/nc-gui/components/nc/List/index.vueindex c9ce7973a5..417dd4753b 100644--- a/packages/nc-gui/components/nc/List/index.vue+++ b/packages/nc-gui/components/nc/List/index.vue@@ -483,7 +483,7 @@ const handleEscape = (event: KeyboardEvent) => {ref="inputRef"v-model:value="searchQuery":placeholder="searchInputPlaceholder"- class="nc-toolbar-dropdown-search-field-input !pl-2 !pr-1.5 flex-1"+ class="nc-list-search-input nc-toolbar-dropdown-search-field-input !pl-2 !pr-1.5 flex-1":class="`nc-theme-${theme}`"allow-clear:bordered="inputBordered"diff --git a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.ts b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.tsindex 1916934d72..702f05727a 100644--- a/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.ts+++ b/packages/nc-gui/components/smartsheet/grid/canvas/composables/useKeyboardNavigation.ts@@ -95,7 +95,7 @@ export function useKeyboardNavigation({return true}- if (isExpandedCellInputExist()) return+ if (isExpandedCellInputExist() || isNcListSearchInputActive()) returnif (isNcDropdownOpen()) returnif (isCmdJActive() || cmdKActive()) returndiff --git a/packages/nc-gui/utils/browserUtils.ts b/packages/nc-gui/utils/browserUtils.tsindex 561e37861b..71a5dca786 100644--- a/packages/nc-gui/utils/browserUtils.ts+++ b/packages/nc-gui/utils/browserUtils.ts@@ -9,6 +9,7 @@ export const isDrawerOrModalExist = () => document.querySelector('.ant-modal.actexport const isExpandedFormOpenExist = () => document.querySelector('.nc-drawer-expanded-form.active')export const isNestedExpandedFormOpenExist = () => document.querySelectorAll('.nc-drawer-expanded-form.active')?.length > 1export const isExpandedCellInputExist = () => document.querySelector('.expanded-cell-input')+export const isNcListSearchInputActive = () => document.activeElement?.closest('.nc-list-search-input')export const isExtensionPaneActive = () => document.querySelector('.nc-extension-pane')export const isGeneralOverlayActive = () => document.querySelector('.nc-general-overlay')export const isSelectActive = () => {