Просмотр исходного кода

Merge pull request #10761 from jayschwa/patch-2

Autofocus on filter input box
Mr.doob 8 лет назад
Родитель
Сommit
21d92b71ec
2 измененных файлов с 2 добавлено и 2 удалено
  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>