mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-24 07:54:13 +00:00
Merge "Exit overlay immediately if no transition"
This commit is contained in:
commit
64f74504a8
|
@ -11,7 +11,7 @@ var mobile = mw.mobileFrontend.require( 'mobile.startup' ),
|
|||
* @return {void}
|
||||
*/
|
||||
function onBeforeExitAnimation( overlay, exit ) {
|
||||
if ( 'transition' in overlay.$el[ 0 ].style ) {
|
||||
if ( getComputedStyle( overlay.$el[ 0 ] ).transitionDuration !== '0s' ) {
|
||||
// Manually detach the overlay from DOM once hide animation completes.
|
||||
overlay.$el[ 0 ].addEventListener( 'transitionend', exit, { once: true } );
|
||||
|
||||
|
|
Loading…
Reference in a new issue