fix(menu): clicking backdrop closes menu properly (#19785)

This commit is contained in:
Liam DeBeasi
2019-10-29 13:26:15 -04:00
committed by GitHub
parent f63d37a4c5
commit 39fb8f6720

View File

@ -229,7 +229,7 @@ AFTER:
@Listen('click', { capture: true })
onBackdropClick(ev: any) {
if (this._isOpen && this.lastOnEnd < ev.currentTime - 100) {
if (this._isOpen && this.lastOnEnd < ev.timeStamp - 100) {
const shouldClose = (ev.composedPath)
? !ev.composedPath().includes(this.menuInnerEl)
: false;