mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(menu): clicking backdrop closes menu properly (#19785)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user