From b4cacc72cecf7d6d1e410095a42de8aeaca01658 Mon Sep 17 00:00:00 2001 From: razonyang Date: Mon, 9 Sep 2024 13:49:31 +0800 Subject: [PATCH] fix(ue): disable input while searching and then resume it once the search is completed --- assets/search/js/form.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/search/js/form.ts b/assets/search/js/form.ts index 4e7e971f5ef..8445c5116bb 100644 --- a/assets/search/js/form.ts +++ b/assets/search/js/form.ts @@ -282,6 +282,7 @@ export default class Form { } private submit() { + this.input.disabled = true const query = this.getQuery() this.updatePage(query) @@ -306,6 +307,8 @@ export default class Form { Historiographer.save(query) } this.spinner.hide() + this.input.disabled = false + this.focus() }) }