Polymer: Observers not called on component inside an iron-list template

Created on 16 May 2017  路  3Comments  路  Source: Polymer/polymer


Description


It seems like property observers are not called if the component is inside an iron-list template.
A dom-repeat renders fine outside of an iron-list but not inside of it.
If I call render on the dom-repeat it renders normally.

Live Demo


http://jsbin.com/pulaworude/edit?html,js,output

Expected Results


dom-repeat renders items

Actual Results


dom-repeat does not render items

Browsers Affected

  • [x] Chrome
  • [x] Firefox
  • [x] Edge

Versions

  • Polymer: v2.0.0
  • webcomponents: v1.0.0

It works with version 2.0.0-rc.8. First broken version is 2.0.0-rc.9.

2.x p1

Most helpful comment

Thanks for reporting this. We can confirm this issue. There's a simple fix and it should make the first bug release version.

The issue is in PropertyEffects at _readyClients. If a client has enabled properties prior to an element readying its clients (this can happen when using templatize), the host element should call _flushProperties on it.

All 3 comments

I also have exactly the same problem. Thank you reporting it and finding workaround to use 2.0.0-rc.8.

Thanks for reporting this. We can confirm this issue. There's a simple fix and it should make the first bug release version.

The issue is in PropertyEffects at _readyClients. If a client has enabled properties prior to an element readying its clients (this can happen when using templatize), the host element should call _flushProperties on it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yairopro picture yairopro  路  3Comments

ghost picture ghost  路  4Comments

derhuebiii picture derhuebiii  路  3Comments

nazar-pc picture nazar-pc  路  4Comments

limonte picture limonte  路  3Comments