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

Textarea cursor removal after insertText #1029

Closed
lance13c opened this issue Oct 6, 2016 · 0 comments
Closed

Textarea cursor removal after insertText #1029

lance13c opened this issue Oct 6, 2016 · 0 comments

Comments

@lance13c
Copy link

lance13c commented Oct 6, 2016

If there is a textarea and a div that is the Quill Editor. When the textarea has focus and then a insertText method is called. The cursor disappears from the textarea.

One solution is to comment out the this.setNativeRange(null); in setRange(range) function.

Steps for Reproduction
Visit: https://jsfiddle.net/lance13c/nrdymvf3/2/

Expected behavior:
To have the textarea remain in focus with the cursor when the insertText method has been called.

Actual behavior:
The textarea losses the cursor after a insertText method has been called.

Platforms:
Android - Chrome 52, Windows 10 64bit - Chrome 53

Version:
1.0.6

@jhchen jhchen closed this as completed in 7fa48ea Oct 9, 2016
tim-mc pushed a commit to tim-mc/quill that referenced this issue Dec 12, 2016
tim-mc pushed a commit to tim-mc/quill that referenced this issue Dec 12, 2016
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