File tree 1 file changed +5
-3
lines changed
src/pydata_sphinx_theme/assets/scripts
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -208,12 +208,14 @@ var findSearchInput = () => {
208
208
*/
209
209
var toggleSearchField = ( ) => {
210
210
// Find the search input to highlight
211
- let input = findSearchInput ( ) ;
211
+ const input = findSearchInput ( ) ;
212
212
213
213
// if the input field is the hidden one (the one associated with the
214
214
// search button) then toggle the button state (to show/hide the field)
215
- let searchDialog = document . querySelector ( ".search-button__search-container" ) ;
216
- let hiddenInput = searchDialog . querySelector ( "input" ) ;
215
+ const searchDialog = document . querySelector (
216
+ ".search-button__search-container" ,
217
+ ) ;
218
+ const hiddenInput = searchDialog . querySelector ( "input" ) ;
217
219
if ( input === hiddenInput ) {
218
220
if ( searchDialog . open ) {
219
221
searchDialog . close ( ) ;
You can’t perform that action at this time.
0 commit comments