Error: Cannot resolve a Slate point from DOM point
See original GitHub issueDo you want to request a feature or report a bug?
bug
Reproduce
See sandbox: https://codesandbox.io/s/youthful-boyd-z3l36
What’s the current behavior?
Tested on Firefox and Chrome, the error only appears in Firefox
From getting started guide, I set up as the docs.
When typed something, some characters of the text was missing
When pressed enter
or backspace
, nothing happened
The browser console logged this:
Error: Cannot resolve a Slate point from DOM point
...
Slate: 0.59.0 Browser: Firefox 80 OS: Ubuntu 20.04
What’s the expected behavior?
Works as Chrome
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
"Cannot resolve a Slate point from DOM point" for non ...
When selecting (supposed to be) non-editable text that is rendered inside of an element, I am seeing an error "Cannot resolve a Slate...
Read more >Error: Cannot resolve a DOM point from Slate point
So the underlying issue that causes the aforementioned error is that the new value being sent to the editor is significantly different, and...
Read more >Slate Editor Issue: Cannot resolve a DOM point from ... - Reddit
The above error is thrown when I add a custom link into a slate editor at current cursor position and use tab or...
Read more >Slate Editor Issue: Cannot resolve a DOM point from Slate ...
Description: The error is thrown when I add a custom link into a slate editor at current cursor position and use tab or...
Read more >Point - Slate
Point. import { Point } from 'slate'. A point in a Slate Document . Points in Slate are inspired by the DOM Range...
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
I think I figured this out:
SlateDocument
cannot be empty.If I initialize it with this it works:
I have the same issue, and I can reproduce on @karlshea’s sandbox
It happens randomly when I type a special character, or a list of special characters, both on Firefox 90.0 (64-bit) and Chrome Version 91.0.4472.164 (Official Build) (x86_64)