mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(modal, popover): quickly opening modal/popover no longer presents duplicates (#24697)
This commit is contained in:
@ -502,8 +502,13 @@ export const dismiss = async (
|
||||
|
||||
activeAnimations.delete(overlay);
|
||||
|
||||
// Make overlay hidden again in case it is being reused
|
||||
/**
|
||||
* Make overlay hidden again in case it is being reused.
|
||||
* We can safely remove pointer-events: none as
|
||||
* overlay-hidden will set display: none.
|
||||
*/
|
||||
overlay.el.classList.add('overlay-hidden');
|
||||
overlay.el.style.removeProperty('pointer-events');
|
||||
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
|
Reference in New Issue
Block a user