Input components now emit a "enter" event and our torrent input searches if "enter" event is received

This commit is contained in:
2019-10-04 00:28:27 +02:00
parent c339045a0e
commit 6f74a5bff4
2 changed files with 5 additions and 2 deletions

View File

@@ -78,7 +78,7 @@
justify-content: center;"
v-if="editSearchQuery">
<seasonedInput text="Torrent query" icon="_torrents" @inputValue="(val) => editedSearchQuery = val"/>
<seasonedInput text="Torrent query" icon="_torrents" @inputValue="(val) => editedSearchQuery = val" @enter="fetchTorrents(editedSearchQuery)" />
<div style="height: 45px; width: 5px;"></div>