draft-js icon indicating copy to clipboard operation
draft-js copied to clipboard

Jumping cursor

Open shadowvzs opened this issue 2 years ago • 3 comments

What is the current behavior?

Sometimes the cursor jumping and letter placed somewhere else

Playground:

https://codesandbox.io/s/98y4rv866o

What is the expected behavior?

Typed character placed in correct place

Which versions of Draft.js, and which browser / OS are affected by this issue? Did this work in previous versions of Draft.js?

draft-js v0.10.5 and 0.11.7, windows 10, Chrome Version 93.0.4577.82 (Official Build) (64-bit)

Videos: https://diricoshare.blob.core.windows.net/sharex/jumping_cursor.mp4

in our project i noticed this happen when the DaftJS editor component call the blockRendererFn/set editState with very small time gap (2-20ms) contentful

check this video at 00:14 and at 01:12 https://diricoshare.blob.core.windows.net/sharex/s6EipBVLIL.mp4

shadowvzs avatar Sep 21 '21 09:09 shadowvzs

@shadowvzs Did you solve this issue? I can not reproduce this bug within your provided playground, but experienced the same behaviour on my local editor.

digitalgopnik avatar Feb 22 '22 09:02 digitalgopnik

@shadowvzs Did you solve this issue? I can not reproduce this bug within your provided playground, but experienced the same behaviour on my local editor.

sadly, i didn't found solution

shadowvzs avatar Feb 22 '22 09:02 shadowvzs

@shadowvzs Take a look at https://github.com/facebook/draft-js/issues/1198

digitalgopnik avatar Apr 23 '22 20:04 digitalgopnik