fix(transition): update disabling transitions

This commit is contained in:
Adam Bradley
2015-11-24 14:02:36 -06:00
parent b58d2e8dab
commit 424800a3c9
6 changed files with 45 additions and 42 deletions

View File

@@ -200,7 +200,6 @@ export class Menu extends Ion {
// user actively dragging the menu
if (this.isEnabled) {
this._prevent();
this.app.setTransitioning(true);
this._getType().setProgess(value);
this.opening.next(value);
}
@@ -213,7 +212,6 @@ export class Menu extends Ion {
// user has finished dragging the menu
if (this.isEnabled) {
this._prevent();
this.app.setTransitioning(true);
this._getType().setProgressEnd(shouldComplete).then(isOpen => {
this._after(isOpen);
});
@@ -231,7 +229,6 @@ export class Menu extends Ion {
this.getBackdropElement().classList.add('show-backdrop');
this._prevent();
this.app.setTransitioning(true);
this.keyboard.close();
}
}
@@ -243,7 +240,6 @@ export class Menu extends Ion {
// keep opening/closing the menu disabled for a touch more yet
if (this.isEnabled) {
this._prevent();
this.app.setTransitioning(false);
this.isOpen = isOpen;