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

Jumping cursor issue with Content-Editable two way data binding using Array of Objects #8194

Closed
priyashpatil opened this issue May 17, 2018 · 1 comment

Comments

@priyashpatil
Copy link

Version

2.5.17-beta.0

Reproduction link

https://codepen.io/priyashpatil/pen/PeyydQ

Steps to reproduce

Card Panel List is editable so try to typing to change content in "Using Objects" Panel.

What is expected?

Cursor should not jump to start position of content editable element having two way data binding.

What is actually happening?

Cursor jump to start position of element due to re rending of element.

@posva
Copy link
Member

posva commented May 17, 2018

The reason it doesn't jump is that you're not reactively setting the data (see reactivity caveats in docs). If you use splice you see the same behaviour.

contenteditable needs special treatment and it would bloat Vue code if it was supported out of the box. So instead we recommend using third party plugins.

See #4681 (comment) and #1670 (comment)

@posva posva closed this as completed May 17, 2018
arzhed added a commit to arzhed/notapad that referenced this issue Mar 29, 2019
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