Skip to content

Commit fa2a44d

Browse files
committed
Examples: Fixed filter handling.
1 parent a4740f3 commit fa2a44d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,13 @@ <h1><a href="http://threejs.org">three.js</a></h1>
316316
}
317317

318318
filterInput.value = extractQuery();
319+
320+
if ( filterInput.value !== '' ) {
321+
322+
panel.classList.add( 'searchFocused' );
323+
324+
}
325+
319326
updateFilter();
320327

321328
</script>

0 commit comments

Comments
 (0)