Close navbar when submitting search

Closes #366

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-08-18 15:26:11 +02:00
parent 4301842c1e
commit 27c73c4646
2 changed files with 5 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ export default class SearchField extends Vue {
search: string = "";
enter() {
this.$emit("navbar-search");
this.$router.push({
name: RouteName.SEARCH,
query: { term: this.search },