Skip to content

Commit

Permalink
fix: do not disable input after resetting form
Browse files Browse the repository at this point in the history
Closes #258
  • Loading branch information
razonyang committed Oct 5, 2024
1 parent 4098e8a commit 325cde6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/search/js/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export default class Form {
const taxonomies = this.getTaxonomies()

if (query === '' && Object.values(taxonomies).filter((item) => item.length > 0).length == 0) {
this.input.disabled = false
this.hideResetBtn()
this.renderer.clean()
this.renderer.renderHistories()
Expand Down

0 comments on commit 325cde6

Please sign in to comment.