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

<content select=".test"> is not observing condition updates of child elements? #505

Closed
mysticatea opened this issue May 16, 2014 · 4 comments

Comments

@mysticatea
Copy link

<my-wrapper>
  <div class="my-wrapper-test">ok, this is shown.</div>
</my-wrapper>
<my-wrapper>
  <div>should show this text.</div>
</my-wrapper>

This <my-wrapper> has ShadowDOM <content select=".my-wrapper-test"></content>, and has domReady callback.
The callback sets the class my-wrapper-test into all child elements.

Did not show "should show this text." on Chrome 34.0.1847.131 m.
Showed "should show this text." on Chrome 37.0.1994.2 canary.

There is the full code here: https://dl.dropboxusercontent.com/u/5739705/polymer/test.html

@mysticatea
Copy link
Author

I found that can work around by using this.shadowRoot.invalidateShadowRenderer() in domReady callback.

@ebidel
Copy link
Contributor

ebidel commented Jun 2, 2014

@arv
Copy link
Contributor

arv commented Jun 3, 2014

Looking at the code, it is using classList and that has been fixed.

Feel free to reopen if this was not the case.

@arv arv closed this as completed Jun 3, 2014
@mysticatea
Copy link
Author

Thanks, I made sure that this issue had been fixed on 0.3.1.

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

3 participants