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
Thanks for reporting this - fix looks ok, but actually I think we should probably handle other node content as well. Maybe it would be more like domNode.children.length > 0 as an additional condition.
loading the following HTML:
<a href="https://facebook.com"><img src="https://server/img.jpg"/></a>
drops the A element.
this happens because of this:
lexical/packages/lexical-link/src/index.ts
Line 286 in 5595519
Lexical version: 0.10
if I may suggest the fix could look like this:
if ((content !== null && content !== '') || domNode.querySelector('img') !== null)
The text was updated successfully, but these errors were encountered: