Forráskód Böngészése

Merge pull request #10761 from jayschwa/patch-2

Autofocus on filter input box
Mr.doob 8 éve
szülő
commit
21d92b71ec
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      docs/index.html
  2. 1 1
      examples/index.html

+ 1 - 1
docs/index.html

@@ -215,7 +215,7 @@
 				<span></span>
 			</a>
 			<div class="filterBlock" >
-				<input type="text" id="filterInput" placeholder="Type to filter"/>
+				<input type="text" id="filterInput" placeholder="Type to filter" autofocus/>
 				<a href="#" id="clearFilterButton" >x</a>
 			</div>
 			<div id="content"></div>

+ 1 - 1
examples/index.html

@@ -232,7 +232,7 @@
 				<span></span>
 			</a>
 			<div class="filterBlock" >
-				<input type="text" id="filterInput" placeholder="Type to filter"/>
+				<input type="text" id="filterInput" placeholder="Type to filter" autofocus/>
 				<a href="#" id="clearFilterButton" >x</a>
 			</div>
 			<div id="content"></div>