Skip to content

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

Description

@mysticatea
<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

Activity

  1. mysticatea commented on May 16, 2014

    @mysticatea
    Author

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

  2. ebidel commented on Jun 2, 2014

    @ebidel
    Contributor
  3. arv commented on Jun 3, 2014

    @arv
    Contributor

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

    Feel free to reopen if this was not the case.

  4. mysticatea commented on Jun 3, 2014

    @mysticatea
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions