debounce enter in search (mobile)

This commit is contained in:
Cadence Ember
2025-11-10 19:55:51 +13:00
parent 7ba59b5d71
commit de6233ad65

View File

@@ -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
}
})