Skip to content

Conversation

Bruce511
Copy link

Dialog: Force a blur on the element which had focus when the dialog opens, and reset the focus to that element when the dialog closes. Fixed #5265 - button: When opening dialog button keeps focus.

…pens, and reset the focus to that element when the dialog closes. Fixed #5265 - button: When opening dialog button keeps focus.
@scottgonzalez
Copy link
Member

This is already working. Probably from a recent change in button.

@Bruce511
Copy link
Author

I chose to approach this from the dialog point of view, because many different controls may trigger a dialog to open. For example, I've added some code to an input field so if the user types a ? a lookup-dialog appears. Fixing it for the button is great, but fixing it for everything is more generic.

@scottgonzalez
Copy link
Member

Dialog just reveals the problem, we need to solve the underlying problem.

@chkpnt
Copy link

chkpnt commented Jul 25, 2013

This issue was observed in jQuery-UI 1.8 (http://jsbin.com/ehubo) and has been solved for the 1.9 branch (http://jsfiddle.net/Qzfyv/). But unfortunately, the problem is back in 1.10: http://jsfiddle.net/nWzac/1/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants