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
{{ message }}
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started:
Using an Android device with the stock GBoard keyboard:
Type "This is just fine"
Select "just"
Make the text bold
Click into "just"
Accept a suggestion, for instance "Justin"
What is the expected behavior?
Expected: The bold "just" should be replaced with the suggestion.
Actual: The result is "This is Justinst fine"
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 master branch, Android w/ Chrome 76.x
At a guess is there an off by one error at leaf boundaries w/ the mutation observer? This doesn't repro in a plain contenteditable. I'm really interested in helping get Android better supported, but could use some suggestions for where to look.
The text was updated successfully, but these errors were encountered:
You can reproduce this by using document.execCommand('insertText', false, 'text for replace') API. Browsers use the similar API for replacing in native spellcheckers and for replacing on mobile devices.
Go to the console and execute next function: document.execCommand('insertText', false, 'all').
You will see the next incorrect text: allhere..
Place a cursor at the end of the string.
Press Ctrl/Command + A (Select All).
Enter a letter.
Take a look at the console. There will be an error - Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node..
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. You can use this jsfiddle to get started:
Using an Android device with the stock GBoard keyboard:
What is the expected behavior?
Expected: The bold "just" should be replaced with the suggestion.
Actual: The result is "This is Justinst fine"
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 master branch, Android w/ Chrome 76.x
At a guess is there an off by one error at leaf boundaries w/ the mutation observer? This doesn't repro in a plain
contenteditable
. I'm really interested in helping get Android better supported, but could use some suggestions for where to look.The text was updated successfully, but these errors were encountered: