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

v-model on textareas inside v-for causes textareas to lose focus on change #1791

Closed
rokkamokka opened this issue Nov 11, 2015 · 2 comments
Closed

Comments

@rokkamokka
Copy link

Below is a minimal working example of the problem. Whenever you type anything inside the textareas, the focus is immediately lost. It looks like the textareas are demolished and recreated on change.
http://jsfiddle.net/d1rppdfc/

I also found an old, closed bug that looks related: #689

@pocke
Copy link

pocke commented Nov 11, 2015

I think you can use track-by. #1730

https://jsfiddle.net/d1rppdfc/1/

I encountered same problem today. 🐱

@rokkamokka
Copy link
Author

An unusual quirk. Your suggested solution seems to work any way, so thanks! :)

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

2 participants