-
Notifications
You must be signed in to change notification settings - Fork 53
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
Problem wwith md-close-on-click
when md-fixed
is true
#318
Comments
I think this line needs to be changed from: closeOnClick: (this.ref.mdFixed ? false : getBooleanFromAttributeValue(this.ref.mdCloseOnClick)), to closeOnClick: (this.ref.mdFixed && window.innerWidth > 992 ? false : getBooleanFromAttributeValue(this.ref.mdCloseOnClick)), I'm not a fan of hardcoding values like 992 but it turns out that the Materialize library does it all over the place. When in Rome? ¯_(ツ)_/¯ |
I think you're right. That's one of the reasons the component is still marked as "work in progress" and I completely forgot about that, sorry. The current I've had some more ideas with side-nav, like a service monitoring certain breakpoints (like 992px) and optionally adjusting elements via a custom attribute when these values change - for example body padding. But your idea is a nice and easy start. 😃 I guess we could even make the breakpoint an option so we don't rely on hardcoded values at all (I know Materialize itself still does that).. |
👌 No problem. Any chance we can get a temporary workaround, like above, before the final is done? |
Just upgrade, I've put it in 0.19.1 😃 I'll create a separate issue for that. |
👍 Awesome! Thanks for the quick turnaround. |
Expected result: the sidenav closes
Actual result: the sidenav remains open
The text was updated successfully, but these errors were encountered: