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
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
When using e.preventDefault to omit some emoji input from MacOS's emoji picker, the caret still moving as if the character already been input.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem https://jsfiddle.net/m6z0xn4r/181/
As we can see from the gif, I prevent everything in onBeforeInput. I'm trying to insert an emoji using MacOS's emoji picker. The caret then moved to the wrong position.
This issue is not only happen to contentEditable element but also apply to input element as well.
What is the expected behavior?
Caret should stay still if the input being blocked in onBeforeInput.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Tested react 15.3 and above, Chrome on MacOS is affected.
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
BUG
What is the current behavior?
When using e.preventDefault to omit some emoji input from MacOS's emoji picker, the caret still moving as if the character already been input.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
https://jsfiddle.net/m6z0xn4r/181/
As we can see from the gif, I prevent everything in onBeforeInput. I'm trying to insert an emoji using MacOS's emoji picker. The caret then moved to the wrong position.
This issue is not only happen to contentEditable element but also apply to input element as well.
What is the expected behavior?
Caret should stay still if the input being blocked in onBeforeInput.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
Tested react 15.3 and above, Chrome on MacOS is affected.
The text was updated successfully, but these errors were encountered: