浏览代码

Examples: Fixed filter handling.

Mr.doob 5 年之前
父节点
当前提交
fa2a44d6f0
共有 1 个文件被更改,包括 7 次插入0 次删除
  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>