mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Media modal: make sure the Close button is focused after attempting to close the onscreen keyboard on touch devices. Props celloexpressions, fixes #29166.
git-svn-id: https://develop.svn.wordpress.org/trunk@29473 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
72ca5be593
commit
ecfee74ce2
@ -3243,7 +3243,7 @@
|
||||
// Disable page scrolling.
|
||||
$( 'body' ).addClass( 'modal-open' );
|
||||
|
||||
$el.show().find( '.media-modal-close' ).focus();
|
||||
$el.show();
|
||||
|
||||
// Try to close the onscreen keyboard
|
||||
if ( 'ontouchend' in document ) {
|
||||
@ -3257,6 +3257,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
$el.find( '.media-modal-close' ).focus();
|
||||
|
||||
return this.propagate('open');
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user