[Beta]: Comment popover requires two clicks to open
Bug type
Behavior bug (incorrect output/state without crash)
Browser surface
Yes
Owner surface
Docs, examples, templates, or registry
Summary
Clicking text highlighted by an existing comment requires two clicks to open its popover instead of opening on the first click.
Public reproduction URL
NOT_ENOUGH_INFO
Steps to reproduce
- Open a Plate next/Beta editor containing text with an existing comment.
- Start with the comment popover closed.
- Click the existing comment's highlighted text in the document once.
- Observe that the popover does not open.
- Click the same highlighted text again; the popover opens.
The reporter confirmed the target is existing highlighted comment text, not the toolbar Comment button or the paragraph comment icon.
Expected behavior
A single click on existing highlighted comment text opens the associated comment popover. Authority: the reporter's requested behavior.
Actual behavior
The reporter observes that the first click does not open the popover; clicking again opens it. This describes two click attempts, not a requirement for a rapid double-click gesture. No independent browser reproduction has been performed for this report.
Acceptance criteria
- One click on existing highlighted comment text opens the correct comment popover.
- After dismissing it, one click opens it again.
- The first-click behavior works when the editor was not already focused.
- Verify the exact interaction in a real browser.
Regression range
NOT_ENOUGH_INFO
Reproducibility
NOT_ENOUGH_INFO
Plate / Plite / React versions
Testing lane: Plate next/Beta.
Exact affected commit and package versions: NOT_ENOUGH_INFO.
Remote next head at filing: a6afd55c30e97c74fe895d1ad005ca75413110f3; not independently replayed as the failing build.
Operating system
NOT_ENOUGH_INFO
Install method
NOT_ENOUGH_INFO
Framework / app setup
NOT_ENOUGH_INFO
Affected packages or entry points
Registry comment UI, platejs/comment/react, and block-discussion.tsx.
Minimal code or config excerpt
NOT_ENOUGH_INFO
Logs, screenshots, and evidence
The reporter supplied the recording below after confirming that the click target is existing highlighted comment text. The clip shows the Plate Playground and the highlighted text "comments on many text segments", followed by the comment popover. It contains no explicit click counter; the two-click count is reporter-confirmed. No new recording was needed. Independent browser replay remains required before claiming a fix.
Maintainer Codex context
Candidate local route: /blocks/discussion-demo, registered in apps/www/src/registry/registry-examples.ts.
Inspect apps/www/src/registry/components/editor/comment.tsx and apps/www/src/registry/components/editor/block-discussion.tsx. Both comment activation and popover open state are relevant investigation points; no root cause is established.
Additional information
Open and closed duplicate searches found no matching two-click report. #5112 concerns the first comment composer appearing at the viewport origin, which is a different actual behavior.
Supplied recording
Plate next/Beta, supplied by the reporter. Exact recorded build: NOT_ENOUGH_INFO.
https://github.com/user-attachments/assets/9c1b4a0a-5aea-45eb-9ee0-b4c319d91393
Source: udecode/plate