You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the columns layout widget is the first node, Select all (or mouse selection of the whole widget)-> Delete, leads to invalid state of the widget. If there's a paragraph before the widget it select all deletes correctly.
Screen.Recording.2024-12-10.at.23.46.10.mov
The text was updated successfully, but these errors were encountered:
This is mostly due to the point normalization in our $selectAll() function, it basically always shrinks selections down to the innermost element or TextNode if there is one. Maybe we could change that to only shrink if there is a TextNode, or only if the container is ParagraphNode, or something like that. The alternative would be to do something around how delete works, but then you run into the ambiguity of "did they mean to select all the text, or also the container?" - the normalization makes these two intents indistinguishable.
Lexical 0.21
If the columns layout widget is the first node, Select all (or mouse selection of the whole widget)-> Delete, leads to invalid state of the widget. If there's a paragraph before the widget it select all deletes correctly.
Screen.Recording.2024-12-10.at.23.46.10.mov
The text was updated successfully, but these errors were encountered: