Skip to content

Commit

Permalink
fix(ue): disable input while searching and then resume it once the
Browse files Browse the repository at this point in the history
search is completed
  • Loading branch information
razonyang committed Sep 9, 2024
1 parent d6ba834 commit b4cacc7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/search/js/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ export default class Form {
}

private submit() {
this.input.disabled = true
const query = this.getQuery()
this.updatePage(query)

Expand All @@ -306,6 +307,8 @@ export default class Form {
Historiographer.save(query)
}
this.spinner.hide()
this.input.disabled = false
this.focus()
})
}

Expand Down

0 comments on commit b4cacc7

Please sign in to comment.