Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ESC/Escape key closes containing jQueryUI dialog when Chosen drop-down list is showing [jsFiddle provided] #1256

Closed
BrandonLWhite opened this issue Jun 3, 2013 · 0 comments · Fixed by #2713

Comments

@BrandonLWhite
Copy link
Contributor

When using a Chosen drop-down list inside of a jQueryUI dialog, an issue exists with the ESC/Escape key where if the user presses ESC while the drop-down list is showing (ie. results_showing==true) then instead of the drop-down list disappearing as expected, the entire containing dialog is canceled.

Please refer to this jsFiddle for a demonstration of the issue and a workaround fix.

This appears to stem from the dialog looking for ESC on keydown whereas Chosen is looking for ESC on keyup.

Hopefully there is a more elegant way to resolve this, ideally from within Chosen and not externally as shown in my demo.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants