Browse Source

chore: close suggestion after selection

pull/1979/head
Wing-Kam Wong 2 years ago
parent
commit
fa6d6cbf2a
  1. 3
      packages/nc-gui/components/project/spreadsheet/components/editColumn/formulaOptions.vue

3
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() {

Loading…
Cancel
Save