diff --git a/packages/nc-gui/composables/useMultiSelect/index.ts b/packages/nc-gui/composables/useMultiSelect/index.ts index fe143eae3d..129fa5fbbb 100644 --- a/packages/nc-gui/composables/useMultiSelect/index.ts +++ b/packages/nc-gui/composables/useMultiSelect/index.ts @@ -767,6 +767,11 @@ export function useMultiSelect( // Handle escape if (e.key === 'Escape') { selectedRange.clear() + + if (selectedRange.isSingleCell()) return + + activeCell.col = null + activeCell.row = null } if (unref(editEnabled) || e.ctrlKey || e.altKey || e.metaKey) { diff --git a/tests/playwright/pages/Dashboard/WebhookForm/index.ts b/tests/playwright/pages/Dashboard/WebhookForm/index.ts index 264bfa217c..d94a4b524d 100644 --- a/tests/playwright/pages/Dashboard/WebhookForm/index.ts +++ b/tests/playwright/pages/Dashboard/WebhookForm/index.ts @@ -150,11 +150,11 @@ export class WebhookFormPage extends BasePage { await this.get().locator(`.ant-tabs-tab-btn:has-text("Headers")`).click(); await this.rootPage.waitForTimeout(500); - await this.get().locator('.nc-input-hook-header-key').click(); + await this.get().locator('.nc-input-hook-header-key input').click(); await this.rootPage.waitForTimeout(500); // kludge, as the dropdown is not visible even after scroll into view - await this.rootPage.locator('.nc-input-hook-header-key').pressSequentially(key); + await this.rootPage.locator('.nc-input-hook-header-key input').pressSequentially(key); await this.rootPage .locator('.ant-select-dropdown:visible') .locator(`.ant-select-item:has-text("${key}")`)