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

onChangeSelection is not triggered when inserting a linebreak #381

Closed
bakkerjoeri opened this issue Jul 4, 2018 · 0 comments
Closed

onChangeSelection is not triggered when inserting a linebreak #381

bakkerjoeri opened this issue Jul 4, 2018 · 0 comments

Comments

@bakkerjoeri
Copy link
Contributor

bakkerjoeri commented Jul 4, 2018

React-Quill version 1.1.0

Summary

It seems like onChangeSelection is not always immediately triggered, for instance when hitting . React Quill seems to differ in this way from Quill's inherent behaviour.

I noticed this when creating a formatting widget that should move vertically along with the current selection boundaries.

update-selection

Steps to reproduce

What do I expect to happen?

onChangeSelection is called and the console logs a new range of {index: 1, length: 0}.

What happens instead?

onChangeSelection is not triggered, so the console logs nothing new. When I then start typing, selection does update as expected.

@bakkerjoeri bakkerjoeri changed the title onChangeSelection is not triggered when inserting a linebreak onChangeSelection is not triggered when inserting a linebreak Jul 4, 2018
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