Blur searchbox on enter.

Closes #260
This commit is contained in:
FireMasterK 2021-07-15 00:52:00 +05:30
parent 81fc3c66c6
commit 47ca3453c3
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -63,6 +63,7 @@ export default {
methods: { methods: {
onKeyUp(e) { onKeyUp(e) {
if (e.key === "Enter") { if (e.key === "Enter") {
e.target.blur();
this.$router.push({ this.$router.push({
name: "SearchResults", name: "SearchResults",
query: { search_query: this.searchText }, query: { search_query: this.searchText },