mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(overlays): prevent accidental clicks when dismissing overlays (#21093)
fixes #21092
This commit is contained in:
@@ -156,6 +156,8 @@ export const dismiss = async (
|
||||
overlay.presented = false;
|
||||
|
||||
try {
|
||||
// Overlay contents should not be clickable during dismiss
|
||||
overlay.el.style.setProperty('pointer-events', 'none');
|
||||
overlay.willDismiss.emit({ data, role });
|
||||
const mode = getIonMode(overlay);
|
||||
const animationBuilder = (overlay.leaveAnimation)
|
||||
|
||||
Reference in New Issue
Block a user