-
Notifications
You must be signed in to change notification settings - Fork 129
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
list doesn't reflect changes to array/object properties from the parent scope. #109
Comments
Root caused to https://github.com/Polymer/polymer/blob/master/src/lib/template/templatizer.html#L243 not adding |
Blocked on core issue Polymer/polymer#2505. The solution is non-trivial, and may cause us to rethink the templatizer design that allows the templatizer client (element that has the We may need to consider a breaking change to That is, moving from: <iron-list items="{{items}}">
<template>...</template>
</iron-list> to: <div style="overflow:auto;">
<template is="iron-list" items="{{items}}">...</template>
</div> We could supply a scroller/list container that provides the scrolling styling and possibly other value-added features, aka: <iron-scroller>
<template is="iron-list" items="{{items}}">...</template>
<iron-scroller> This needs to be weighed against any long-term needs for the Templatizer to be separable from the templatized template(s), for supporting things like polymorphic templates. |
I really like the idea of template instances being linked to both the parent element that defines it and the Templatizer client that uses it. It brings new possibilities of customizability for Polymer elements. |
For now, we went with a low-impact fix to just make it work, and preserves the ability to have Templatizer client and templatized template separate, as in the current iron-list implementation. @blasten Polymer/polymer#2505 is now resolved; can you confirm in |
@kevinpschaaf I can confirm that this bug has been fixed :) |
Iron-list: http://jsbin.com/subuqi/1/edit?html,output
It works fine if you replace the iron-list with a dom-repeat http://jsbin.com/bejivu/edit?html,output
The text was updated successfully, but these errors were encountered: