GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Placeholder does not disappear after typing in Safari/WebKit · Issue #2881 · TypeCellOS/BlockNote

Placeholder does not disappear after typing in Safari/WebKit #2881

New issue
Copy link
New issue
Copy link
Open
Bug
Open
Placeholder does not disappear after typing in Safari/WebKit#2881
Bug
Copy link

Description

@ibb2
ibb2
opened on Jul 3, 2026
Issue body actions

What’s broken?

In Safari and WebKit based desktop applications, BlockNote's placeholders is not being cleared after text is started to be entered into a block or document. The document updates and the entered text persists correctly, but the placeholder is stilling being displayed inline beside the text until Safari or the application is refreshed. This affects both the emptyDocument placeholder and the default placeholder.
Image

What did you expect to happen?

The empty document and default placeholder should disappear immediately when starting to type into a block in Safari and WebKit-based desktop frameworks as happens in Chrome. Where the placeholder disappears immediately after the first character is entered.

Steps to reproduce

  1. Setup/Create a BlockNote editor.
  2. Open the editor in Safari or a WKWebView based desktop application (I am using Electrobun, Tauri is probably the same).
  3. Focus an empty document and type anything. Empty editor placeholder text remains beside the entered text if set.
  4. Press Enter to create another block and type text. Default placeholder text remains beside the entered text.
  5. Repeat in Chrome. Both placeholders disappear immediately after typing.

BlockNote version

0.51.4

Environment

Safari 27.0 (22625.1.20.11.3), macOS 27.0 (26A5368g), Electrobun 1.18.1 (WKWebView), React 19.1.0

Additional context

I got Codex to investigate the bug and it returned the following notes:

BlockNote 0.51.4 injects placeholder rules from PlaceholderExtension using a selector shaped like:

.placeholder-selector-... .bn-block-content[data-is-empty-and-focused]:has(.ProseMirror-trailingBreak:only-child)::after

In Chrome, typing removes the placeholder immediately (::after changes from the configured string to none, and the empty/focused decoration is removed). In Safari/WebKit, the editor contains and persists the entered text while the generated placeholder pseudo-content remains visible. Changing focus causes it to disappear.

This strongly suggests a WebKit style-invalidation issue involving the dynamically injected :has(...)::after rule, rather than an editor-state or persistence failure. The behavior was reproduced directly in Safari and in a native WKWebView, with Chrome used as the working control.

Contribution

  • I'd be interested in contributing a fix for this issue

Sponsor

  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Activity

  1. ibb2
    added
    needs-triageIssue has not yet been reviewed or classified by maintainers.Issue has not yet been reviewed or classified by maintainers.
    on Jul 3, 2026
  2. nperez0111 commented on Jul 3, 2026

    @nperez0111
    nperez0111
    on Jul 3, 2026
    Contributor
    More actions

    @ibb2, can you reproduce this on any of our examples pages? https://www.blocknotejs.org/examples/basic/minimal

    Since it is in your application it can be hard to isolate where the issue actually lies.

  3. ibb2 commented on Jul 4, 2026

    @ibb2
    ibb2
    on Jul 4, 2026
    Author
    More actions

    Ok, I tested the linked Basic Minimal example in Safari, and it works. I also ran 01-minimal example from BlockNotes examples(/BlockNote/examples/01-basic/01-minimal) locally in Safari. It works in light mode, but I can reproduce the issue in dark mode.

  4. nperez0111
    added the
    Bug
    issue type on Aug 11, 2026
  5. matthewlipski
    removed
    needs-triageIssue has not yet been reviewed or classified by maintainers.Issue has not yet been reviewed or classified by maintainers.
    on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.