Saulis / iron-data-table

iron-data-table is a Web Component for displaying data as a table or grid. Built on top of iron-list using Polymer.
Apache License 2.0
147 stars 66 forks source link

Data binding issue with iron-list 1.3.9 when table is inside of "dom-if" template #146

Open web-padawan opened 8 years ago

web-padawan commented 8 years ago

iron-list v 1.3.9 has introduced some changes related to the painting performance. As a result, in some cases data binding does not propagate (and only works for first item).

There is definitely some kind of "first item magic" here. Still investigating the reason, will try to add more details soon.

Saulis commented 8 years ago

Thanks for the report!

At least in the previous versions so far, iron-list first renders one item, measures the height and tries to calculate how many items more are needed to cover the viewport.

malthusyau commented 8 years ago

I am having the same issue as well. It will update the first item of each lazy-loaded "page"

Saulis commented 7 years ago

Can you guys modify this jsbin so that it reproduces the issue? http://jsbin.com/luzofe/edit?html,output

web-padawan commented 7 years ago

@Saulis see http://jsbin.com/nugixaziwe/1/edit?html,console,output

web-padawan commented 7 years ago

seems that bug is only reproduced when inside of dom-if template.