mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Customizer: Skip animations when they have no duration.
In addition to skipping animations when a related style doesn't Exist, now checks to see if animation styles are Empty as well. This resolves a case where the Gutenberg End to End tests were failing, due to running with animations disabled. This change should also help some users who are intentionally overriding styles to remove animations. See https://github.com/WordPress/gutenberg/issues/32024 for the original Gutenberg issue. Props zieladam, isabel_brison, kevin940726, desrosj, mikeschroder. Fixes #53562. See #53542. git-svn-id: https://develop.svn.wordpress.org/trunk@51389 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f49d48fdcb
commit
7de1b7c0ae
2
src/js/_enqueues/wp/customize/controls.js
vendored
2
src/js/_enqueues/wp/customize/controls.js
vendored
@ -906,7 +906,7 @@
|
||||
'WebkitTransition': 'webkitTransitionEnd'
|
||||
};
|
||||
prop = _.find( _.keys( transitions ), function( prop ) {
|
||||
return ! _.isUndefined( el.style[ prop ] );
|
||||
return ! _.isUndefined( el.style[ prop ] ) && ! _.isEmpty( el.style[ prop ] );
|
||||
} );
|
||||
if ( prop ) {
|
||||
return transitions[ prop ];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user