From d034f13d05c4e995e077de224b0d275162b95065 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 31 Jan 2020 12:43:28 -0800 Subject: [PATCH] Force close of search box after item selection In Firefox, for some reason selecting an item with the mouse would not clear the search overlay. It appears that it would generally clear when the blur function is called, but something appears to be different when selected by mouse vs enter key. This forces a call to `this.close()` to close the dialog without relying only on the blur action. Fixes #263 --- src/components/Search.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Search.vue b/src/components/Search.vue index 16bc5d18..78087e2c 100644 --- a/src/components/Search.vue +++ b/src/components/Search.vue @@ -95,6 +95,7 @@ export default { onItemSelect() { this.$refs.searchInput.$el.blur(); this.clear(); + this.close(); }, clear() { this.query = "";