You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out that transitionend event emitted from child element inside modal component can trigger modal to be prematurely close.
If I added a check in on-transition-end.js like so then it works. I'm not sure if the intention was to catch all transitionend event but it looks like a bug to me.
exportdefaultfunctiononTransitionEnd(element,callback,transitionProperty='all',once=false){constfn=(e)=>{const{ propertyName, type, target }=e;// Check to see if target and element are the same element.if(target!==element){return;}if(transitionProperty!=='all'&&propertyName!==transitionProperty){return;}if(once){element.removeEventListener(type,fn,true);}run(null,callback,e);};element.addEventListener(transitionEndEventName,fn,true);}
The text was updated successfully, but these errors were encountered:
I found out that
transitionend
event emitted from child element inside modal component can trigger modal to be prematurely close.If I added a check in
on-transition-end.js
like so then it works. I'm not sure if the intention was to catch alltransitionend
event but it looks like a bug to me.The text was updated successfully, but these errors were encountered: