Browse Source

Examples: Fixed filter handling.

Mr.doob 5 years ago
parent
commit
fa2a44d6f0
1 changed files with 7 additions and 0 deletions
  1. 7 0
      examples/index.html

+ 7 - 0
examples/index.html

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