Press This: fix iOS bug that prevents closing of the split button when tapping outside of it.
See #32757. git-svn-id: https://develop.svn.wordpress.org/trunk@32966 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
550763988b
commit
44eaf91b75
@ -16,6 +16,7 @@
|
||||
isOffScreen = 'is-off-screen',
|
||||
isHidden = 'is-hidden',
|
||||
offscreenHidden = isOffScreen + ' ' + isHidden,
|
||||
iOS = /iPad|iPod|iPhone/.test( window.navigator.userAgent ),
|
||||
transitionEndEvent = ( function() {
|
||||
var style = document.documentElement.style;
|
||||
|
||||
@ -619,6 +620,11 @@
|
||||
if ( window.tagBox ) {
|
||||
window.tagBox.init();
|
||||
}
|
||||
|
||||
// iOS doesn't fire click events on "standard" elements without this...
|
||||
if ( iOS ) {
|
||||
$( document.body ).css( 'cursor', 'pointer' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user