ianstormtaylor / slate

A completely customizable framework for building rich text editors. (Currently in beta.)
http://slatejs.org
MIT License
29.97k stars 3.25k forks source link

Inserting a list moves caret to the top of the document on Safari #3682

Open lcswillems opened 4 years ago

lcswillems commented 4 years ago

Do you want to request a feature or report a bug?

Bug

What's the current behavior?

On this example : https://www.slatejs.org/examples/richtext

When I add a list on Safari, it moves the cursor at the top of the document.

Slate: 0.52.3 Browser: Safari OS: Linux

bjarkih commented 4 years ago

What version of Safari and OSX are you on, @lcswillems?

bjarkih commented 4 years ago

Can you try downgrading to 0.57.2 and see if the problem persists?

lcswillems commented 4 years ago

Thank you for your answer. It works with 0.57.2... Do you have any clue of why it is not working with 0.57.3?

bjarkih commented 4 years ago

It looks like some of the selection changes introduced here caused the issue:

https://github.com/ianstormtaylor/slate/compare/v0.57.2...v0.57.3#diff-0fa78153ea6f5b538c17b22d490c0ad6L153

We're looking into it.

lcswillems commented 4 years ago

Okay great! Let me know if there is any way I can help :)