Skip to content

Commit cdf255d

Browse files
committed
Change search for observer to target search form
1 parent 9c2a7e7 commit cdf255d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/assets/fix-search.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
if (!MutationObserver) {
2222
return;
2323
}
24-
var target = document.getElementById('rtd-search-form');
24+
var target = document.getElementsByClassName('md-search__form');
2525
var config = {attributes: true, childList: true};
2626

2727
var observer = new MutationObserver(function(mutations) {
@@ -39,6 +39,6 @@
3939
}).appendTo(form);
4040
});
4141

42-
observer.observe(target, config);
42+
observer.observe(target[0], config);
4343
});
4444
}());

0 commit comments

Comments
 (0)