Hi everyone
Here is an issue when I was developing website with dart polymer. I have
the following paper-dropdown-menu code
<paper-dropdown-menu>
<paper-dropdown>
<core-menu>
<template repeat="{{enumerator in enumeratorList}}">
<paper-item name="{{enumerator}}"> {{enumerator}} </paper-item>
</template>
</core-menu>
</paper-dropdown>
</paper-dropdown-menu>
, where enumeratorList is an observable list defined in dart. If I toggle
the dropdown menu first, add several elements to the enumeratorList
dynamically through dart, and at last open the dropdown menu again, the
dropdown would have a wrong display. It would be like this
<https://lh4.googleusercontent.com/DsWgQnKr2rtvM5VZz3qwEhSl-sCVPcxUuvmK6SCx5qsyc9Tg-weS9g988PtSa13T1Qqs0qH_qiPcjoUMXrLb_0egfOHpfi0VpSehBVOlbx8KmKpbze_CEuJRlX2Rh2bVQemeqO8>
If I don't toggle the dropdown menu at first, the dropdown menu display
would be correct, like this
So seems that the dropdown menu can not detect dynamically added/removed
paper-item content. Anyone has ideas how to fix it?
Thanks everyone!!!
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/c3b946e5-c28a-44b1-a5da-235359fb7d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.