Skip to content
Bug reportSep 10, 2026· 0:20· 15 views

Lexical: Ctrl+A on an all-link paragraph deactivates the toolbar Link button

0:20 total

Comments · 0

Be the first to comment.

Bug report— by SceneRecap AI

lowtoolbar / selection state sync
os: macOSbrowser: Chromium 151.0.7922.34viewport: 1280x720

Repro steps

  1. 1.Open Lexical Playground containing a paragraph composed entirely of a link ('Lexical website').
  2. 2.Focus the editor and select the link text using Home and Shift+End to verify the Link toolbar button becomes active (control).
  3. 3.Select all content using Ctrl+A (Control+a).
  4. 4.Observe the state of the Link button in the formatting toolbar.

Expected

The Link button in the formatting toolbar should remain active/highlighted when the entire link is selected via Ctrl+A.

Actual

The Link button in the toolbar becomes inactive/unhighlighted when selecting all content via Ctrl+A.

Evidence

visualSelecting the link text with Shift+End shows the link icon highlighted in the toolbar (control case).
visualAfter pressing Ctrl+A, the link icon in the top formatting toolbar is no longer highlighted despite the selection covering the link.
Issue markdown (copy-paste ready)
### Summary
When selecting all content (Ctrl+A) in a paragraph that consists entirely of a link, the Link formatting button on the top toolbar becomes inactive instead of reflecting the active link state.

### Steps to Reproduce
1. Open Lexical Playground with a document containing only a link (`Lexical website` -> `https://lexical.dev/`).
2. Focus the editor and select the text manually with `Home` + `Shift+End` (the Link toolbar button is highlighted).
3. Press `Ctrl+A` to select all.

### Expected Behavior
The Link toolbar button should stay highlighted/active because the selection is inside/covering the link.

### Actual Behavior
The Link toolbar button loses its active highlight state.

*Recorded with SceneRecap.*

Your recordings could explain themselves too.

Free plan · silent recordings welcome · bug reports included.

Try SceneRecap free →
Lexical: Ctrl+A on an all-link paragraph deactivates the toolbar Link button · SceneRecap