Skip to content

Commit

Permalink
GH-66816: Removes disable before return
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aszenz committed Aug 29, 2020
1 parent d8424f6 commit 7ee5155
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/librustdoc/html/static/main.js
Expand Up @@ -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) {
Expand Down Expand Up @@ -2781,9 +2785,6 @@ function defocusSearchBar() {
}
}

if (search_input) {
search_input.removeAttribute('disabled');
}
};

function buildHelperPopup() {
Expand Down

0 comments on commit 7ee5155

Please sign in to comment.