#15029 closed bug (wontfix)
Autocomplete focus in dialog
Reported by: | Blipz | Owned by: | |
---|---|---|---|
Priority: | blocker | Milestone: | none |
Component: | ui.autocomplete | Version: | 1.12.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using an Autocomplete field inside a Dialog, we can encounter some strange behavior where the focus event seems to conflict with the selection.
See https://jsfiddle.net/whpwz6wm/
Steps to reproduce:
- Click on the input field
- Start typing "ja"
- Select "javascript" with a mouse click (not the keyboard)
The click will not have any effect almost every time.
This problem has appeared since 1.12.0 (I guess it is related to commit 581bfb55bf4f4f614a6e0c0ac545cf1aa7d29d0a).
By the way, the documentation says:
By giving an Autocomplete field focus or entering something into it, the plugin starts searching for entries that match and displays a list of values to choose from.
but the focusing does not trigger a search (hence the forced event binding in the example).
Change History (5)
comment:1 Changed 7 years ago by
Status: | new → open |
---|
comment:2 Changed 7 years ago by
Component: | ui.core → ui.autocomplete |
---|---|
Priority: | minor → blocker |
comment:3 Changed 7 years ago by
Resolution: | → wontfix |
---|---|
Status: | open → closed |
This works fine if you don't run a search on focus. Searching on focus isn't great UX, so I'm inclined not to do anything about this. This behavior will go away in 1.13.0 anyway once that IE 8 fix is removed.
comment:4 Changed 7 years ago by
Docs have been updated to reflect reality: https://github.com/jquery/api.jqueryui.com/commit/8b80c2791dab90d062ee82f04a812d655cedf957
comment:5 Changed 7 years ago by
For the record Scott and i discussed this on a call and agree this is correct
I can confirm this issue as well as it being caused by that commit. This is an ie8 specific fix so it might make the most sense to drop it rather then spend time on trying to fix IE8.