Polymer: Template-repeat regenerates elements instead of updating them.

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

Input/contenteditable connected to firebase loses focus on key press.. because the content is regenerated instead of data updating.

http://jsbin.com/diqabi/46/edit?html,output
Firebase: https://intense-heat-1283.firebaseio.com/test.json

Any fix provided ?

1.x api-feedback

Most helpful comment

Not a fix but kind of a dirty workaround, by including a filter in the dom-repeat that always return true, it'd keep the focus.
Don't ask me why, because I don't know
Here the modified code
http://jsbin.com/sohahuzeqi/1/edit?html,output

All 3 comments

Not a fix but kind of a dirty workaround, by including a filter in the dom-repeat that always return true, it'd keep the focus.
Don't ask me why, because I don't know
Here the modified code
http://jsbin.com/sohahuzeqi/1/edit?html,output

You are my HERO ! I was going crazy about this. Thanks so much. I want to buy you a coffee what's your social profile ?!

firebase-element has been deprecated and I am unable to fix your JSBin. If you are still experiencing issues, please reopen this issue with an up-to-date JSBin.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SergRZ picture SergRZ  路  3Comments

abdonrd picture abdonrd  路  4Comments

nazar-pc picture nazar-pc  路  4Comments

augustoroman picture augustoroman  路  4Comments

hzmnet picture hzmnet  路  4Comments