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

Hovering Menu example does not work when the first character selected #1132

Closed SynnaxCrab closed 7 years ago

SynnaxCrab commented 7 years ago

What's the current behavior?

If the first character is selected, hovering menu does not popup:

111

OS: Windows 10 Browser: Chrome 61, Firefox 55.0.2 Slate version: slatejs.org

What's the expected behavior?

Menu should popup when first character selected

More Information

Tried to debug, looks like when the first character is selected, state.isEmpty returns true.

SynnaxCrab commented 7 years ago

Fixed by https://github.com/ianstormtaylor/slate/pull/1131

Thanks!