Skip to content

Commit 7ee5155

Browse files
committed
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
1 parent d8424f6 commit 7ee5155

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/librustdoc/html/static/main.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -2740,6 +2740,10 @@ function defocusSearchBar() {
27402740
}
27412741

27422742
window.addSearchOptions = function(crates) {
2743+
if (search_input) {
2744+
search_input.removeAttribute('disabled');
2745+
}
2746+
27432747
var elem = document.getElementById("crate-search");
27442748

27452749
if (!elem) {
@@ -2781,9 +2785,6 @@ function defocusSearchBar() {
27812785
}
27822786
}
27832787

2784-
if (search_input) {
2785-
search_input.removeAttribute('disabled');
2786-
}
27872788
};
27882789

27892790
function buildHelperPopup() {

0 commit comments

Comments
 (0)