Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dialog: Save the active element that opened the dialog and restore fo…
…cus to that. Fixes #8730 - Dialog: Restore focus to opener.
- Loading branch information
1 parent
2a2a2c0
commit 14691ae
Showing
2 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This call to
.focus()
will trigger unwanted scrolling in some cases. Maybe wrap this in a save/restore of thescrollTop
/scrollLeft
of the opener's scroll parent (if there is one)? Issue filed as http://bugs.jqueryui.com/ticket/10686. Please add your thoughts!