This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Selection breaks when Chinese composition ends without changes in IE11 #2093
Comments
When I change @fabiomcosta: Again, I'd be interested to hear what your thoughts are. Is there any particular reason why you would not want to force the selection after resolving a composition? |
robbertbrak
added a commit
to robbertbrak/draft-js
that referenced
this issue
May 28, 2019
Hi Robbert, TBH I wasn’t sure about what to do for this specific part of
the code, and I couldn’t see any issues with the current implementation.
Thank you for finding all this!
Feel free to send PRs to fix those, or I’ll try to do that when I find some
time this week.
On Tue, May 28, 2019 at 5:21 AM Robbert Brak ***@***.***> wrote:
When I change acceptSelection on line
https://github.com/facebook/draft-js/blob/943f6dce5188724a11bb392645f5873fe5dcf1a6/src/component/handlers/composition/DraftEditorCompositionHandler.js#L228
to forceSelection, the issue goes away.
@fabiomcosta <https://github.com/fabiomcosta>: Again, I'd be interested
to hear what your thoughts are. Is there any particular reason why you
would *not* want to force the selection after resolving a composition?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2093>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAG64VGGQ4P5H3A6Z4R4FDPXUPVLANCNFSM4HQCYTIQ>
.
--
--
Fabio Miranda Costa
*twitter:* @fabioMiranda
*github:* fabiomcosta
|
vilemj-Viclick
pushed a commit
to kontent-ai/draft-js
that referenced
this issue
Jul 16, 2020
Summary: Fixes facebookarchive#2093. Pull Request resolved: facebookarchive#2094 Reviewed By: claudiopro Differential Revision: D21770987 Pulled By: mrkev fbshipit-source-id: f198a89ce2eae69328daa5ce917085ce0d726dba
alicayan008
pushed a commit
to alicayan008/draft-js
that referenced
this issue
Jul 4, 2023
Summary: Fixes facebookarchive/draft-js#2093. Pull Request resolved: facebookarchive/draft-js#2094 Reviewed By: claudiopro Differential Revision: D21770987 Pulled By: mrkev fbshipit-source-id: f198a89ce2eae69328daa5ce917085ce0d726dba
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
To reproduce:
ni
and then press backspace twice.ni
again.Result: the cursor stays on the first (blank) line, whereas the letters
ni
and the Chinese completions appear on the next line. This is incorrect: there shouldn't be a blank line1
and press enter.Result: the editor now contains a blank line (with the cursor), followed by a line with the character
你
, followed by a line with the charactern
. This is incorrect: the editor should only contain你
and nothing else.wo1
and press enter.Result: the editor now contains a line with
n
, followed by a line with the character我
. This is incorrect: the character你
has somehow disappeared and then
suddenly moved to the top of the editor.The screencast below shows more clearly what happens:
I believe that the editorstate breaks immediately after the step "Type
ni
and then press backspace twice", which is the first time a composition is resolved.This might be related to #2080, but it's not the same. The fix that I proposed for that issue does not solve this one.
The text was updated successfully, but these errors were encountered: