Bug: The link button is inactive in the toolbar when the entire element is selected
Author: levenstaCreated Sep 8, 2026Updated Sep 10, 2026
Lexical version: 0.50.0
Steps To Reproduce
- Select all text in a paragraph as a link
- Press Ctrl + A
The current behavior
The link button in the toolbar is inactive, a floating text toolbar is displayed
The expected behavior
The link button should be active and the link menu should be shown if the anchor and focus from selection are set to an element with a LinkNode or any other element that contains only LinkNode inside. The same as if only a part of the text were selected, not the entire element
Impact of fix
The floating toolbar and the static toolbar at the top should show the active state of the buttons, taking into account the selection of entire elements, and not just the text, otherwise it misleads the user
Source: facebook/lexical