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
When there is only an inline DecoratorNode as a child of a ParagraphNode, an unnecessary <br> tag is added at the end. This issue persists even in the latest version of the Lexical package.
There is a mismatch case related to isLineBreakNode in the logic of $convertTableCellNodeElement.
These line breaks are required to work around issues with the native platform’s handling of contentEditable=false. They are only in the rendered HTML, not in the lexical document. You can search the code for managedLineBreak for more implementation details.
If you can report a specific problem caused by the presence of these line breaks, please open a new issue with details about that. They shouldn’t be present in exportDOM so I don’t see how they’re relevant to the partial table cell code you’ve pasted here.
When there is only an inline DecoratorNode as a child of a ParagraphNode, an unnecessary
<br>
tag is added at the end. This issue persists even in the latest version of the Lexical package.There is a mismatch case related to isLineBreakNode in the logic of $convertTableCellNodeElement.
Lexical version: 0.25.0, 0.24.0
Steps To Reproduce
tag is added at the end.
Link to code example: https://playground.lexical.dev/ - inline Equation
The current behavior
When there is only an inline DecoratorNode as a child of a ParagraphNode, an unnecessary
tag is added at the end.
The expected behavior
When there is only an inline DecoratorNode as a child of a ParagraphNode, no
tag should be added.
Impact of fix
This bug can cause unnecessary line breaks in the user interface, affecting user experience.
The text was updated successfully, but these errors were encountered: