Skip to content

[examples/hovering-toolbar] Typing English text over selected formatted text crashes locally #14

@wudidewo12

Description

@wudidewo12

Description

In the Hovering Toolbar example, typing English replacement text over a selected formatted word crashes the local page. The live reference handles the same action normally.

The tester also observed that Chinese input does not trigger this crash in the same workflow, while English input reliably does.

Recording

Screenshots attached below:

Local actual behavior:

Live reference expected behavior:

Video attached below:

CleanShot.2026-05-08.at.15.37.39.mp4

Sandbox

No standalone sandbox. Reproduced in the Slate examples site.

Local reproduction URL:

http://localhost:3100/examples/hovering-toolbar

Reference URL:

https://www.slatejs.org/examples/hovering-toolbar

Steps

To reproduce the behavior:

  1. Go to http://localhost:3100/examples/hovering-toolbar.
  2. Double-click the bold word bold in the first paragraph so it is selected.
  3. Type English replacement text, such as plain.
  4. Repeat the same steps on https://www.slatejs.org/examples/hovering-toolbar.

Expectation

The selected formatted word should be replaced by the typed English text, matching the live reference. The page should not crash.

Actual behavior

On localhost, typing English text over the selected formatted word crashes the page.

Chinese input does not appear to trigger this crash in the same workflow, while English input reliably does.

Environment

  • Local URL: http://localhost:3100/examples/hovering-toolbar
  • Reference URL: https://www.slatejs.org/examples/hovering-toolbar
  • Local branch/commit: v2, ce2bd6c6
  • Browser: Chrome
  • OS: macOS
  • Local app setup: Slate examples site served locally with bun serve

Impact

This breaks a basic rich-text editing workflow in the Hovering Toolbar example. Selecting formatted text and typing normal English replacement text can crash the local page instead of replacing the selected content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions