Open zhouzi opened 6 years ago
@ianstormtaylor Any idea where this regression may come from ?
@Zhouzi Which versions are being used in both reproductions ? (it may help us find the regression)
Nope, not off the top of my head. Would need someone to investigate.
@ianstormtaylor Any progress? I have same problem with input inside void block (as in example https://github.com/ianstormtaylor/slate/blob/master/examples/embeds/video.js), when I click on input value.blocks
still contains previous focused element.
Clicking an element with
contentEditable={false}
in the editor is ignored and the selection remains as if nothing happened. The selection says that the focused node is still the one that was focused before clicking the non-editable element. More importantly, clicking outside of the editor after that doesn't clear the selection which still says that it's focused.Steps to reproduce
contentEditable={false}
componentvalue.selection.isFocused
becomestrue
contentEditable={false}
,value.selection.isFocused
remains truevalue.selection.isFocused
is still trueReproduction
The bug was not present in an older version of Slate: reproduction.