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
{{ message }}
Repository navigation
Bug: tab insertion breaks format inheritance #8151
Should be a fairly straightforward fix, a TabNode is a TextNode after all and it does take format when applied to an existing TabNode so this is probably just the code not considering the selection's format after calling $createTabNode()
Thanks for the quick feedback! I found that the same issue occurs with Linebreak. Unlike TabNode, LineBreakNode inherits from LexicalNode, not TextNode.
Yes, that would be a distinct issue with a different approach because it is not a TextNode. Normally the selection should carry the format when navigating around LineBreakNode. If you have scenarios where you think it should work differently then it does they should be reported in a separate issue from this TabNode one.
Activity
etrepum commentedon Feb 19, 2026
Should be a fairly straightforward fix, a TabNode is a TextNode after all and it does take format when applied to an existing TabNode so this is probably just the code not considering the selection's format after calling
$createTabNode()kimseongyu commentedon Feb 19, 2026
Thanks for the quick feedback! I found that the same issue occurs with Linebreak. Unlike TabNode, LineBreakNode inherits from LexicalNode, not TextNode.
etrepum commentedon Feb 19, 2026
Yes, that would be a distinct issue with a different approach because it is not a TextNode. Normally the selection should carry the format when navigating around LineBreakNode. If you have scenarios where you think it should work differently then it does they should be reported in a separate issue from this TabNode one.
kimseongyu commentedon Feb 19, 2026
It looks like the same kind of issue, but it needs a different approach in detail. I'll open a separate issue after resolving this one!