]> source.dussan.org Git - jquery-ui.git/commit
Autocomplete: Rewrite with a delay instead of appending the live region
authorBen Mullins <benm@umich.edu>
Wed, 5 Jan 2022 10:35:34 +0000 (05:35 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Jan 2022 10:35:34 +0000 (11:35 +0100)
commit933ce5d779135ad04734f14c50b38f9a8d8564f5
treec70e00d5c28371436a65e9070aad5ba0cfaa52ac
parente90096e9dd25392118c2c578f490445870ced686
Autocomplete: Rewrite with a delay instead of appending the live region

This fixes the issue caused by https://bugs.jqueryui.com/ticket/9357.
We now empty the live region instead of appending to it, and we do so
after a brief timeout so the live region isn't updated on every mousemove
event or when quickly traversing through options.

Fixes gh-2002
Closes gh-2031
tests/unit/autocomplete/core.js
ui/widgets/autocomplete.js