Skip to content

Commit

Permalink
update search height when paste and not search if same input
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Aug 25, 2024
1 parent 89bca24 commit d37f3e9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ext/js/display/search-display-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,11 @@ export class SearchDisplayController {
if (!text) {
return;
}
this._queryInput.value = text;
this._searchButton.click();
if (this._queryInput.value !== text) {
this._queryInput.value = text;
this._updateSearchHeight(true);
this._searchButton.click();
}
}

/** @type {import('application').ApiHandler<'searchDisplayControllerUpdateSearchQuery'>} */
Expand Down

0 comments on commit d37f3e9

Please sign in to comment.