Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

core-collapse sets core-list's selected to null when triggered #15

Open
yawhide opened this issue Jan 21, 2015 · 0 comments
Open

core-collapse sets core-list's selected to null when triggered #15

yawhide opened this issue Jan 21, 2015 · 0 comments

Comments

@yawhide
Copy link

yawhide commented Jan 21, 2015

Hello,

So I am trying to figure out why the core-list's selected property is being set to null when I trigger my core-collapse component. Here is my code:

<core-list data='{{data}}'>
  <template>
    {{selected}}, {{index}}
    <core-collapse id='coreCollapse' opened="{{selected}}" fixedSize>
    <div id='someId'>
        hi
    </div>
    </core-collapse>
  </template>
</core-list>

so when I inspect the core-list component in chrome dev tools, {{selected}} is null, when clicked {{selected}} goes true, collapse gets triggered, then {{selected}} goes back to null, and collapse gets triggered again.

I removed core-collapse and {{selected}} stays true when clicked.

How do I fix this behaviour? Is this a bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant