fix(overlays): prevent accidental dismiss of overlays when tapping screen twice (#20683)

fixes #20608
This commit is contained in:
Liam DeBeasi
2020-03-06 10:11:20 -05:00
committed by GitHub
parent ec4878ac08
commit b6c2a77deb
11 changed files with 55 additions and 11 deletions

View File

@ -11,7 +11,11 @@ export const iosEnterAnimation = (baseEl: HTMLElement): Animation => {
backdropAnimation
.addElement(baseEl.querySelector('ion-backdrop')!)
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)');
.fromTo('opacity', 0.01, 'var(--backdrop-opacity)')
.beforeStyles({
'pointer-events': 'none'
})
.afterClearStyles(['pointer-events']);
wrapperAnimation
.addElement(baseEl.querySelector('.picker-wrapper')!)