bug: When side menu is disabled, expose-aside-when="large" still triggers
Type: bug
Platform: all
In the 'ion-side-menu' when is-enabled="false", expose-aside-when="large" is still triggering. So in some sections I am disabling the menu but if the width is greater than 768px the menu is still appearing.
Codepen: http://codepen.io/matiastucci/pen/oHapg
Thanks for the codepen example!
Perfect, thanks to you!
In the nightly this should be fixed?
Sorry to reopen this, but is still happening: http://codepen.io/matiastucci/pen/JeAsl?editors=100
Thanks!
.@matiastucci i can confirm the same.
Same here
The expose-aside-when feature is pretty poorly thought out/configured IMO... There needs to be an easier way to override when to show/hide the exposed side menu, beyond using media queries -- We need to be able to control this easily with JS as well! I think the directive needs another attribute that takes a true/false expression and shows or hides itself based upon that.
As an example: If a user hasn't logged into my app yet, I may not want to have the side menu options exposed (they might be dynamically set according to the user). In this case, having expose-aside-when set to large will unfortunately ensure that the side menu is always shown which means I can't use it without writing my own code for fighting against the way it currently works.
I'm also having the problem. I didn't found a proper way to close / toggle a left side menu which has the expose-aside-when directive. Using $ionicSideMenuDelegate.isOpenLeft() always returns false. This is quite inconsistent. Even when using directives such as ng-if or ng-show, I didn't manage to find a solution !
Thanks
noKid
http://pain-advice.com/betonmarkets-front
24.03.2015, 14:12, "noKid" [email protected]:I'm also having the problem. I didn't found a proper way to close / toggle a side menu which have the expose-aside-when directive. Using $ionicSideMenuDelegate.isOpenLeft() always returns false. This is inconsistent and should be changed.
Thanks
—Reply to this email directly or .
it's still visible even though disabled
Tis bug is still present in the v1.1.0
I also have this bug when using expose-aside-when and it's really annoying. Did someone found a workaround for this?
Here's a simple "hack" I've made that could maybe help others:
- create
ng-classfor<ion-side-menu-content>with a statement:
<ion-side-menu-content ng-class="{'menu-disabled': state.current.name === 'app.login'>
- Add css element
menu-disabledin your CSS file:
ion-side-menu-content.menu-disabled {
width: auto !important;
transform: initial !important;
}
- ???
- Profit.
:+1:
hi,
in version 1.3 I am still getting the same behavior (exposed-aside-when seems to override is-enabled)
@lordgreg approach solves my use case, but this is still a bug / inconsistency in my opinion.