From 39fb8f67200d96b526b4773c1907ae5bf6ec8f89 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 29 Oct 2019 13:26:15 -0400 Subject: [PATCH] fix(menu): clicking backdrop closes menu properly (#19785) --- core/src/components/menu/menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/components/menu/menu.tsx b/core/src/components/menu/menu.tsx index 6bbdf1ea34..6a3d741bf2 100644 --- a/core/src/components/menu/menu.tsx +++ b/core/src/components/menu/menu.tsx @@ -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;