You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Focus on the editor. The console should log a range of {index: 0, length: 0}.
Press the ↵ key once.
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.
The text was updated successfully, but these errors were encountered:
bakkerjoeri
changed the title
onChangeSelection is not triggered when inserting a linebreak
onChangeSelection is not triggered when inserting a linebreak
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.
Steps to reproduce
{index: 0, length: 0}
.↵
key once.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.The text was updated successfully, but these errors were encountered: