Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exposeAsideWhen directive bug fix #4163

Merged
merged 1 commit into from
Dec 6, 2015

Conversation

msalcala11
Copy link

Fixes issue #3600 by ensuring that the side menu changes position only when $window.matchMedia changes from valid to invalid and vice versa, rather than listening to every resize event to trigger a change.

Since Ionic broadcasts a resize event on every popover and modal show action, this ensures that opening a popover located in the side-menu does not close the side menu, which is an issue that has been mentioned in the following ionic forum posts:

  1. http://forum.ionicframework.com/t/menu-left-closes-when-popover-show/21476

  2. http://forum.ionicframework.com/t/bug-side-menu-with-expose-aside-when-will-close-by-itself-when-a-modal-or-popover-comes-up/14532

  3. http://forum.ionicframework.com/t/popover-in-side-menu-how-to-stop-side-menu-close/12277

@msalcala11 msalcala11 force-pushed the exposeAsideWhenFix branch from c52208c to 8187367 Compare July 29, 2015 15:27
mlynch added a commit that referenced this pull request Dec 6, 2015
@mlynch mlynch merged commit 622d702 into ionic-team:master Dec 6, 2015
@mlynch
Copy link
Contributor

mlynch commented Dec 6, 2015

Thanks, definitely a bit of incorrect back and forth on the resize event 😛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants