-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Columns Layout if first node deletion is incorrect #6938
Comments
@basile-savouret this might be a continuation of the original issue you started fixing with the widget |
This is mostly due to the point normalization in our |
I just ran into this today. Any workarounds? |
You could override SELECT_ALL_COMMAND and create a selection that includes the whole node without using $selectAll or selection normalization. |
- Added function in LayoutPlugin to handle layout deletion for all delete operations (character, word, line) - Added command registrations for DELETE_CHARACTER_COMMAND, DELETE_WORD_COMMAND, and DELETE_LINE_COMMAND - Added new e2e tests in Layout.spec.mjs: - Layout deletion when it's the first node - Layout deletion with surrounding content - Testing different delete operations (character, word, line) Fixes facebook#6938
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: