From fa6d6cbf2a55dd4244eca45221d7a799278fb509 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 6 May 2022 20:00:28 +0800 Subject: [PATCH] chore: close suggestion after selection --- .../spreadsheet/components/editColumn/formulaOptions.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/formulaOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/formulaOptions.vue index 2881395470..e1708d9851 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/formulaOptions.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/formulaOptions.vue @@ -262,6 +262,7 @@ export default { this.$set(this.formula, 'value', insertAtCursor(this.$refs.input.$el.querySelector('input'), text, len)) } this.autocomplete = false + this.suggestion = null }, _handleInputDeb: debounce(async function(self) { await self.handleInput() @@ -281,8 +282,6 @@ export default { selectText() { if (this.suggestion && this.selected > -1 && this.selected < this.suggestion.length) { this.appendText(this.suggestion[this.selected]) - this.autocomplete = false - this.suggestion = null } }, suggestionListDown() {