Skip to content
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

Re-adding custom element with iron-data-table on the same parent #191

Open
miklosbarabas opened this issue Feb 6, 2017 · 1 comment
Open

Comments

@miklosbarabas
Copy link

miklosbarabas commented Feb 6, 2017

There's a custom element that has an iron-data-data, using it's items attribute and 2-way-binding {{}} from iron-ajax.
After lazy-importing the element and adding the new element as a child to a parent node, everything works as it should.

In my case the user navigates to another view, therefore I remove this custom element from its parent node.
When the user comes back to that view, I lazy-import the element again (polymer detects that it's already there) and add it again to the same previous parent node.
After that the new content gets loaded into the iron-data-table (as previously did), but right after that somehow the previous data is loaded back again. (this change is fast, user only experience the previous data in the table)

This is only experienced if not using iron-ajax's auto, instead invoking it with the generateRequest() method.
Until calling this.$.ironAjaxId.generateRequest() for the first time in the custom element, everything is working as expected.

@miklosbarabas
Copy link
Author

miklosbarabas commented Feb 6, 2017

What I have found so far is that data-table-templatizer-behavior.html has a method called _forwardParentProp and if I comment the body of that method out, the issue mentioned in the description is not happening.

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

No branches or pull requests

1 participant