mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(menu): crash when menu if forcedClosed
This commit is contained in:
@ -392,7 +392,8 @@ export class Menu implements ComponentInterface, MenuI {
|
||||
this.lastOnEnd = detail.timeStamp;
|
||||
this.animation
|
||||
.onFinish(() => this.afterAnimation(shouldOpen), {
|
||||
clearExistingCallbacks: true
|
||||
clearExistingCallbacks: true,
|
||||
oneTimeCallback: true
|
||||
})
|
||||
.progressEnd(shouldComplete, stepValue, realDur);
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
|
||||
<ion-content>
|
||||
<ion-list>
|
||||
<ion-item>Open end Menu</ion-item>
|
||||
<ion-item button onclick="openEnd()">Open end Menu</ion-item>
|
||||
<ion-item>Close Menu</ion-item>
|
||||
<ion-item>Close Menu</ion-item>
|
||||
<ion-item>Close Menu</ion-item>
|
||||
@ -108,6 +108,7 @@
|
||||
menu.open('start');
|
||||
}
|
||||
function openEnd() {
|
||||
debugger;
|
||||
console.log('Open end menu');
|
||||
menu.open('end');
|
||||
}
|
||||
|
Reference in New Issue
Block a user