Slate: triple-click to select block, selection extends to next block

Created on 24 Apr 2017  Â·  3Comments  Â·  Source: ianstormtaylor/slate

http://slatejs.org/#/rich-text?
Triple click to select the first paragraph. Click header 1 button. Note that the second paragraph became H1 as well.

bug ♥ help

Most helpful comment

Could we re-open this issue, as it's still happening with applying list styles (ordered, unordered) in the same rich text editor example.

http://slatejs.org/#/rich-text
Triple click to select the first paragraph. Click ordered/unordered list button. See, that the previous block gets added inside the list element.

All 3 comments

Hey @AlexeiAndreev thanks for reporting this.

I agree it's something that should be fixed. It looks like Draft handles this by fixing these types of selections before using setBlock. If anyone is interested in helping, I'd be open to a pull request that does similar!

Could we re-open this issue, as it's still happening with applying list styles (ordered, unordered) in the same rich text editor example.

http://slatejs.org/#/rich-text
Triple click to select the first paragraph. Click ordered/unordered list button. See, that the previous block gets added inside the list element.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianstormtaylor picture ianstormtaylor  Â·  3Comments

ianstormtaylor picture ianstormtaylor  Â·  3Comments

markolofsen picture markolofsen  Â·  3Comments

Slapbox picture Slapbox  Â·  3Comments

varoot picture varoot  Â·  3Comments