Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 5b60303

Browse files
committed
chore(docs-app): add debounce to search input
This fixes issues where the search results do not correctly reflect the search query. This happens in Firefox when you enter a search query very rapidly. There is probably an issue with the async behavior of the search / webworker, so this is just a workaround.
1 parent 10e2552 commit 5b60303

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/config/templates/app/indexPage.template.html

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ <h1 class="brand"><a href="http://angularjs.org"><img width="117" height="30" sr
8383
ng-blur="focus=false"
8484
ng-change="search(q)"
8585
ng-model="q"
86+
ng-model-options="{debounce: 150}"
8687
docs-search-input
8788
autocomplete="off">
8889
</form>

0 commit comments

Comments
 (0)