Rollup merge of #76052 - aszenz:GH-66816_removes_disable_attribute_before_return, r=GuillaumeGomez
GH-66816: Remove disable attr 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. Fixes #66816
This commit is contained in:
commit
300d7f661a
1 changed files with 8 additions and 4 deletions
|
@ -2740,10 +2740,17 @@ function defocusSearchBar() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function enableSearchInput() {
|
||||||
|
if (search_input) {
|
||||||
|
search_input.removeAttribute('disabled');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
window.addSearchOptions = function(crates) {
|
window.addSearchOptions = function(crates) {
|
||||||
var elem = document.getElementById("crate-search");
|
var elem = document.getElementById("crate-search");
|
||||||
|
|
||||||
if (!elem) {
|
if (!elem) {
|
||||||
|
enableSearchInput();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var crates_text = [];
|
var crates_text = [];
|
||||||
|
@ -2781,10 +2788,7 @@ function defocusSearchBar() {
|
||||||
elem.value = savedCrate;
|
elem.value = savedCrate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
enableSearchInput();
|
||||||
if (search_input) {
|
|
||||||
search_input.removeAttribute('disabled');
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
function buildHelperPopup() {
|
function buildHelperPopup() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue