diff --git a/package.json b/package.json index 4a8f9e39cb..07040d136c 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "cypress": "7.6.0", "cypress-file-upload": "5.0.8", "eslint": "7.29.0", - "eslint-plugin-vue": "7.11.1", + "eslint-plugin-vue": "7.12.1", "faker": "5.5.3", "jest": "27.0.5", "sass-loader": "10.2.0", diff --git a/src/components/input/multiselect.vue b/src/components/input/multiselect.vue index 34a81fad29..0d6bc44213 100644 --- a/src/components/input/multiselect.vue +++ b/src/components/input/multiselect.vue @@ -28,7 +28,7 @@ :placeholder="placeholder" @keydown.down.exact.prevent="() => preSelect(0)" ref="searchInput" - @focus="() => showSearchResults = true" + @focus="handleFocus" /> @@ -258,6 +258,13 @@ export default { closeSearchResults() { this.showSearchResults = false }, + handleFocus() { + // We need the timeout to avoid the hideSearchResultsHandler hiding the search results right after the input + // is focused. That would lead to flickering pre-loaded search results and hiding them right after showing. + setTimeout(() => { + this.showSearchResults = true + }, 10) + }, select(object) { if (this.multiple) { if (this.internalValue === null) { diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index b99c6fcab9..db91938117 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -51,15 +51,13 @@