fix(search-input): submit on enter
diff --git a/erpnext/public/js/hub/components/SearchInput.vue b/erpnext/public/js/hub/components/SearchInput.vue
index 6647b15..4b1ce6e 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">
</div>
</template>
@@ -20,13 +20,7 @@
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);
}
}
};
</script>
-
-<style lang="scss" scoped>
-</style>