mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
@ -203,7 +203,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
this.updateState();
|
||||
}
|
||||
|
||||
@Listen('body:click', { enabled: false, capture: true })
|
||||
@Listen('click', { enabled: false, capture: true })
|
||||
onBackdropClick(ev: any) {
|
||||
if (this.lastOnEnd < ev.timeStamp - 100) {
|
||||
const shouldClose = (ev.composedPath)
|
||||
@ -412,7 +412,7 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
}
|
||||
|
||||
// add/remove backdrop click listeners
|
||||
this.enableListener(this, 'body:click', isOpen);
|
||||
this.enableListener(this, 'click', isOpen);
|
||||
|
||||
if (isOpen) {
|
||||
// add css class
|
||||
|
Reference in New Issue
Block a user