mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Media modal: make sure the Close button is focused after attempting to close the onscreen keyboard on touch devices. Props celloexpressions, fixes #29166.
Built from https://develop.svn.wordpress.org/trunk@29473 git-svn-id: http://core.svn.wordpress.org/trunk@29251 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d45cde548e
commit
ce14155edf
@ -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');
|
||||
},
|
||||
|
||||
|
2
wp-includes/js/media-views.min.js
vendored
2
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user