Comment editor crashes when writing diacritics
See original GitHub issueThis issue was created automatically by a script.
Bug 1713496
Bug Reporter: @MikkCZ CC: @Pike
STR:
- Open any string, e.g. https://pontoon.mozilla.org/cs/firefox/all-resources/?string=74127.
- Open the comment textarea either on a suggestion or the string in general.
- On Czech keyboard do two times: – press acute/caron key (with or without Shift), followed by e.g. E, to write either “é” or “ě” – press space bar
What should happen:
- The area should contain "é é " or "ě ě " depending on what you pressed.
What happens:
- The first time space is pressed, the letter disappears. The second time the whole frontend crashes and two errors appear in the console.
Error: Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":3}
toDOMPoint react-editor.ts:262
toDOMRange react-editor.ts:277
wt editable.tsx:184
React 3
unstable_runWithPriority scheduler.production.min.js:19
React 4
unstable_runWithPriority scheduler.production.min.js:19
React 4
onChange with-react.ts:177
apply create-editor.ts:86
promise callback*apply create-editor.ts:84
apply with-react.ts:52
insertText text.ts:448
withoutNormalizing editor.ts:1587
insertText text.ts:414
insertText create-editor.ts:188
insertText editor.ts:319
onBeforeInput editable.tsx:498
React 12
unstable_runWithPriority scheduler.production.min.js:19
React 13
unstable_runWithPriority scheduler.production.min.js:19
React 4
Redux 5
a middleware.js:22
dispatch Redux
r actions.js:67
h runtime.js:63
_invoke runtime.js:293
S runtime.js:118
Babel 2
react-dom.production.min.js:209:194
Uncaught (in promise) Error: Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":3}
toDOMPoint react-editor.ts:262
toDOMRange react-editor.ts:277
wt editable.tsx:184
React 3
unstable_runWithPriority scheduler.production.min.js:19
React 4
unstable_runWithPriority scheduler.production.min.js:19
React 4
onChange with-react.ts:177
apply create-editor.ts:86
promise callback*apply create-editor.ts:84
apply with-react.ts:52
insertText text.ts:448
withoutNormalizing editor.ts:1587
insertText text.ts:414
insertText create-editor.ts:188
insertText editor.ts:319
onBeforeInput editable.tsx:498
React 12
unstable_runWithPriority scheduler.production.min.js:19
React 13
unstable_runWithPriority scheduler.production.min.js:19
React 4
Redux 5
a middleware.js:22
dispatch Redux
r actions.js:67
h runtime.js:63
_invoke runtime.js:293
S runtime.js:118
Babel 2
react-editor.ts:262:12
Issue Analytics
- State:
- Created 2 years ago
- Comments:10
Top Results From Across the Web
1713496 - [Comments] react-editor crash when writing diacritics
What happens: The first time space is pressed, the letter disappears. The second time the whole frontend crashes and two errors appear in...
Read more >diacritic accents make email window crash · Issue #718 - GitHub
I write emails in three languages, two of these three have accents, like this é. I am a paying customer and haven't received...
Read more >bug #50676, CTD when writing Latin accents on... [Savannah]
Writing the accent character before the rest of the word DOES NOT result in a crash, e.g.: 1. Write "â" in the editor;...
Read more >Using accents crashes OS X applications - Apple Community
Using accents crashes OS X applications. Hello everyone,. I'm writing to you here with much frustration about a problem that has been bugged ......
Read more >[Script Editor Folds Beta] Studio crashes when typing special ...
After I reinstalled Windows 10, when I write the Cyrillic alphabet, the studio just crashes. I asked my friend about this, he does...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah, thanks. Let’s continue as agreed on the meeting (i.e. as you suggested), sorry for the false alarm.
The kicker is that you need to start with an empty inbox.
Then add a diacritic, add a char, move, delete, crash.