GH-66816: Removes disable before return
Passing --disable-per-crate-search removes the create search inputs so moved code around so that the search input is enabled first before the function returns
This commit is contained in:
parent
d8424f6b42
commit
7ee515579e
1 changed files with 4 additions and 3 deletions
|
@ -2740,6 +2740,10 @@ function defocusSearchBar() {
|
|||
}
|
||||
|
||||
window.addSearchOptions = function(crates) {
|
||||
if (search_input) {
|
||||
search_input.removeAttribute('disabled');
|
||||
}
|
||||
|
||||
var elem = document.getElementById("crate-search");
|
||||
|
||||
if (!elem) {
|
||||
|
@ -2781,9 +2785,6 @@ function defocusSearchBar() {
|
|||
}
|
||||
}
|
||||
|
||||
if (search_input) {
|
||||
search_input.removeAttribute('disabled');
|
||||
}
|
||||
};
|
||||
|
||||
function buildHelperPopup() {
|
||||
|
|
Loading…
Add table
Reference in a new issue