Open ncqwer opened 4 years ago
Probably the same issue as #3421.
TL;DR every element that has contentEditable={false}
should also have style={{ userSelect: 'none' }}
to avoid this issue.
I am getting this behaviour even with user-select: none
in the styles. Seems to be related to blocks that only have a void nodes in them.
Probably the same issue as #3421.
TL;DR every element that has
contentEditable={false}
should also havestyle={{ userSelect: 'none' }}
to avoid this issue.
good idea. it's solved,thanks.
Do you want to request a feature or report a bug?
bug
What's the current behavior?
Under the situation that if a normally
parent element
's children are allvoid element
,clicking the area(contenteditable=false
) that belong toparent element
and multiple times will result in an error(Cannot resolve a Slate point from DOM point: [object Text],17
)here is the exmaple: example The bug doesn't happen each time.
Slate: 0.58.1 Browser: Chrome OS: Mac
What's the expected behavior?
No error occured!