File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 2020 }
2121 } ) ;
2222 if ( navigator . platform . indexOf ( 'Mac' ) === - 1 ) $ ( '#search-shortcut-sidebar' ) . html ( "^K" ) ; // if OS isn't Mac change Visual indication of search field
23+
24+ // Show & hide seach input when focusin & focusout
2325 $ ( '#search-input' ) . focus ( ( ) => {
2426 $ ( '#search-shortcut-sidebar' ) . hide ( ) ;
2527 } ) ;
28+ $ ( '#search-input' ) . focusout ( ( ) => {
29+ $ ( '#search-shortcut-sidebar' ) . show ( ) ;
30+ } )
2631 </ script >
2732
2833{% endblock %}
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
4949 < div class ="row ">
5050 < div class ="input-group col-xl-8 mb-2 ">
5151 < input
52- type ="text " name ="q " id ="q "
52+ type ="search " name ="q " id ="q "
5353 class ="form-control "
5454 placeholder ="Search the docs… "
5555 aria-labelledby ="search-documentation " value ="" autocomplete ="off " autocorrect ="off " autocapitalize ="off " spellcheck ="false "/>
You can’t perform that action at this time.
0 commit comments