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

Template-repeat regenerates elements instead of updating them. #3659

Closed
safizn opened this issue May 16, 2016 · 3 comments
Closed

Template-repeat regenerates elements instead of updating them. #3659

safizn opened this issue May 16, 2016 · 3 comments

Comments

@safizn
Copy link

safizn commented May 16, 2016

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 ?

@thexs-dev
Copy link

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

@safizn
Copy link
Author

safizn commented May 17, 2016

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 ?!

@TimvdLippe
Copy link
Contributor

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.

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

No branches or pull requests

5 participants