Skip to content

exposeAsideWhen directive bug fix#4163

Merged
mlynch merged 1 commit intoionic-team:masterfrom
msalcala11:exposeAsideWhenFix
Dec 6, 2015
Merged

exposeAsideWhen directive bug fix#4163
mlynch merged 1 commit intoionic-team:masterfrom
msalcala11:exposeAsideWhenFix

Conversation

@msalcala11
Copy link
Copy Markdown

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
Copy Markdown
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