-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sidenav open triggers page scroll to bottom unexpectly #579
Comments
Hi @vuel - there was a similar discussion on the angular repo a while back around the point of $el.focus(), the workaround was pining the position of the sidenav to fixed. I just dropped
into my sidenav component <style> block and all was good again. |
Hi @stramec |
@vuel - just add md-fixed as a class to the md-sidenav component.
I haven't looked why this is required, but it works. |
Adding md-fixed does make the sidenav work again, however it doesn't solve the program of scrolling to bottom. Update: putting sidenav at the top of the page above main contents seems to fix the problem. |
See: https://codepen.io/wenris/pen/QpjPQE
This problem is caused by this code
this.$el.focus()
in src/mdSlidenav/mdSlidenav.vue line 45.
Simple remove that line and the following line
this.$el.blur()
will fix it, I don't know if I'm right?The text was updated successfully, but these errors were encountered: