From 4451aea52e25e3a6ebc5decd0a4963f33320622f Mon Sep 17 00:00:00 2001 From: Bo26fhmC5M <88071760+Bo26fhmC5M@users.noreply.github.com> Date: Wed, 29 Jan 2025 08:39:32 +0900 Subject: [PATCH] fix: resolve mobile keyboard enter button not working in HypaV3 modal --- src/lib/Others/HypaV3Modal.svelte | 32 +++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/src/lib/Others/HypaV3Modal.svelte b/src/lib/Others/HypaV3Modal.svelte index cef64c67..ea9b6616 100644 --- a/src/lib/Others/HypaV3Modal.svelte +++ b/src/lib/Others/HypaV3Modal.svelte @@ -871,19 +871,27 @@
- { - if (searchUIState) { - searchUIState.currentIndex = -1; - searchUIState.results = []; - } +
{ + e.preventDefault(); + onSearch({ key: "Enter" } as KeyboardEvent); }} - onkeydown={(e) => onSearch(e)} - /> + > + { + if (searchUIState) { + searchUIState.currentIndex = -1; + searchUIState.results = []; + } + }} + onkeydown={(e) => onSearch(e)} + /> +
{#if searchUIState.results.length > 0}