mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Dialog: Trigger focus event when dialog is moved to top.
This commit is contained in:
parent
b6cefc797e
commit
4e03321fd7
3
ui/jquery.ui.dialog.js
vendored
3
ui/jquery.ui.dialog.js
vendored
@ -306,8 +306,7 @@ $.widget("ui.dialog", {
|
|||||||
|
|
||||||
open: function() {
|
open: function() {
|
||||||
if ( this._isOpen ) {
|
if ( this._isOpen ) {
|
||||||
// TODO don't pass silent flag? should probably trigger focus when moving to top again
|
this.moveToTop( null );
|
||||||
this.moveToTop( null, true );
|
|
||||||
// TODO run this only when dialog wasn't focused?
|
// TODO run this only when dialog wasn't focused?
|
||||||
this._focusTabbable();
|
this._focusTabbable();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user