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

isVisible fixes #10888

Merged
merged 3 commits into from Apr 16, 2015
Merged

Conversation

mitchlloyd
Copy link
Contributor

A couple small additions got the isVisible tests passing.

The first change sets the initial style value based on the isVisible property. One potential problem with this is that if someone has attributeBindings for style setup, then isVisible will stomp on the style property with display: none when the component is rendered. However, when isVisible becomes true, the style from attributeBindings is restored. Really one could argue that this isn't a problem, but I went ahead and added a test and a fix for this in the 3rd commit.

Most of the "isVisible with Container" tests were failing because a view had a template method that returned a raw string. Adding an additional check for layoutTemplate.raw before attempting to setup blockToRender worked around this issue.

rwjblue added a commit that referenced this pull request Apr 16, 2015
@rwjblue rwjblue merged commit 7324b93 into emberjs:idempotent-rerender Apr 16, 2015
@rwjblue
Copy link
Member

rwjblue commented Apr 16, 2015

Woot! Thanks!

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.

None yet

2 participants