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

md-sidenav is open even when opened="false" #300

Closed
rahulbats opened this issue Apr 13, 2016 · 4 comments · Fixed by #444
Closed

md-sidenav is open even when opened="false" #300

rahulbats opened this issue Apr 13, 2016 · 4 comments · Fixed by #444
Labels
P2 The issue is important to a large percentage of users, with a workaround
Milestone

Comments

@rahulbats
Copy link

rahulbats commented Apr 13, 2016

i used the following code for side nav
<md-sidenav #start mode="side" opened="false">

but the sidenav is still open instead of closed.

@jelbourn
Copy link
Member

@rahulbats Looks like your code snippet is missing.

@rahulbats
Copy link
Author

sorry i forgot to add the code tags around. I have updated the comment above.

@jelbourn jelbourn added this to the alpha.4 milestone Apr 15, 2016
@jelbourn jelbourn added the P2 The issue is important to a large percentage of users, with a workaround label Apr 15, 2016
@rahulbats
Copy link
Author

the solution to this is using it like angular 2 dom property
<md-sidenav #start mode="side" [opened]="false">
instead of
<md-sidenav #start mode="side" opened="false">

If this is intentional the README is misleading
https://github.com/angular/material2/tree/master/src/components/sidenav#bound-properties

@jelbourn jelbourn modified the milestones: alpha.4, alpha.5 May 12, 2016
devversion added a commit to devversion/material2 that referenced this issue May 14, 2016
* The sidenav didn't parse the boolean attribute correctly.

Fixes angular#300.
andrewseguin pushed a commit to andrewseguin/components that referenced this issue Oct 15, 2018
andrewseguin pushed a commit to andrewseguin/components that referenced this issue Oct 15, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants