mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
sideMenu: only update zIndex (change the dom) when you need to
This commit is contained in:
@@ -24,10 +24,14 @@
|
||||
this.isEnabled = isEnabled;
|
||||
},
|
||||
bringUp: function() {
|
||||
this.el.style.zIndex = 0;
|
||||
if(this.el.style.zIndex !== '0') {
|
||||
this.el.style.zIndex = '0';
|
||||
}
|
||||
},
|
||||
pushDown: function() {
|
||||
this.el.style.zIndex = -1;
|
||||
if(this.el.style.zIndex !== '-1') {
|
||||
this.el.style.zIndex = '-1';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user