Sfoglia il codice sorgente

Examples: Fixed filter handling.

Mr.doob 5 anni fa
parent
commit
fa2a44d6f0
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      examples/index.html

+ 7 - 0
examples/index.html

@@ -316,6 +316,13 @@
 		}
 
 		filterInput.value = extractQuery();
+
+		if ( filterInput.value !== '' ) {
+
+			panel.classList.add( 'searchFocused' );
+
+		}
+
 		updateFilter();
 
 		</script>