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

Cannot set "opened" attribute to "false" #36

Closed
dplassgit opened this issue Dec 11, 2015 · 1 comment
Closed

Cannot set "opened" attribute to "false" #36

dplassgit opened this issue Dec 11, 2015 · 1 comment

Comments

@dplassgit
Copy link

If you set the opened attribute to anything, it is interpreted as true.

e.g.,

<iron-collapse id="collapse" opened="false"> inside collapse </iron-collapse>

Still shows the content inside the collapse.

@valdrinkoshi
Copy link
Member

Yes, as per documentation:

Boolean properties are set based on the presence of the attribute: if the attribute exists at all, the property is set to true, regardless of the attribute value. If the attribute is absent, the property gets its default value.

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

No branches or pull requests

2 participants