Prechádzať zdrojové kódy

Docs/Examples: Call updateFilter() only when ?q= is set (#21462)

Mr.doob 4 rokov pred
rodič
commit
b83ab7d43b
2 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 2 2
      docs/index.html
  2. 2 2
      examples/index.html

+ 2 - 2
docs/index.html

@@ -181,9 +181,9 @@
 
 
 				panel.classList.add( 'searchFocused' );
 				panel.classList.add( 'searchFocused' );
 
 
-			}
+				updateFilter();
 
 
-			updateFilter();
+			}
 
 
 		}
 		}
 
 

+ 2 - 2
examples/index.html

@@ -116,9 +116,9 @@
 
 
 				panel.classList.add( 'searchFocused' );
 				panel.classList.add( 'searchFocused' );
 
 
-			}
+				updateFilter( files, tags );
 
 
-			updateFilter( files, tags );
+			}
 
 
 			// Events
 			// Events