mirror of
https://gitdab.com/cadence/breezewiki.git
synced 2026-03-05 13:40:27 -05:00
debounce enter in search (mobile)
This commit is contained in:
@@ -87,7 +87,7 @@ window.addEventListener("pageshow", () => {
|
||||
})
|
||||
|
||||
effect(() => {
|
||||
if (enterWasLastKey.value && st.value === "loading") {
|
||||
if (enterWasLastKey.value && (st.value === "loading" || st.value === "accepted")) {
|
||||
enterWasLastKey.value.preventDefault() // wait for results before going
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user