From 4a2ea993fd4ba44fe75a55b3ee1e9ed6663db349 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Sun, 26 Aug 2018 19:49:20 +0530 Subject: [PATCH] fix(search-input): submit on enter --- erpnext/public/js/hub/components/SearchInput.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/erpnext/public/js/hub/components/SearchInput.vue b/erpnext/public/js/hub/components/SearchInput.vue index 6647b154d7..4b1ce6e4ef 100644 --- a/erpnext/public/js/hub/components/SearchInput.vue +++ b/erpnext/public/js/hub/components/SearchInput.vue @@ -5,7 +5,7 @@ class="form-control" :placeholder="placeholder" :value="value" - @input="on_input"> + @keydown.enter="on_input"> @@ -20,13 +20,7 @@ export default { on_input(event) { this.$emit('input', event.target.value); this.on_search(); - - // TODO: Debouncing doesn't fire search - // frappe.utils.debounce(this.on_search, 500); } } }; - -