Trigger Search function on enter pressed
This commit is contained in:
parent
b1b536e177
commit
39e568fc3c
1 changed files with 8 additions and 6 deletions
|
@ -4,13 +4,15 @@ import { t } from "i18next";
|
|||
---
|
||||
|
||||
<div class="search-bar">
|
||||
<input
|
||||
type="search"
|
||||
placeholder={t("HEADER.SEARCH")}
|
||||
aria-label="Search for a video or stream"
|
||||
/>
|
||||
<form onsubmit="return Search()">
|
||||
<input
|
||||
type="search"
|
||||
placeholder={t("HEADER.SEARCH")}
|
||||
aria-label="Search for a video or stream"
|
||||
/>
|
||||
</form>
|
||||
<button onclick="Search()"><Search /></button>
|
||||
<div style="display: none;" class="suggestions"></div>
|
||||
<div style="opacity: 0;" class="suggestions"></div>
|
||||
</div>
|
||||
|
||||
<!-- Search Scripts -->
|
||||
|
|
Reference in a new issue