Skip to content

Editor placeholder does not display after certain sequences of text deletion #76

@ktrieu

Description

@ktrieu

Describe the bug
Certain sequences of deleting text lead to a visually empty editor with no placeholder.

To Reproduce
Steps to reproduce the behavior:

  1. Open an empty editor with a placeholder
  2. Press three times to make three new paragraphs
  3. Press to select all
  4. Delete the selection

Expected behavior
We expect to see the default empty editor placeholder.

Screenshots
We got advanced screen recording for you guys:
https://streamable.com/vn7idc

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version 85

Additional context
This seems to be a result of upstream Slate issues: ianstormtaylor/slate#3432 and ianstormtaylor/slate#3605. In particular, ianstormtaylor/slate#3605 has a workaround that might fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingunit: editorupstreamRequires a change from upstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions