Skip to content

fix(playground): wrong logic for FloatingLinkEditorPlugin bad node#5814

Merged
thegreatercurve merged 1 commit intofacebook:mainfrom
agriffis:fix/link-modal-fix-fix
Apr 12, 2024
Merged

fix(playground): wrong logic for FloatingLinkEditorPlugin bad node#5814
thegreatercurve merged 1 commit intofacebook:mainfrom
agriffis:fix/link-modal-fix-fix

Conversation

@agriffis
Copy link
Copy Markdown
Contributor

@agriffis agriffis commented Apr 3, 2024

As discussed at #5551 (comment)

I suspect the lengthy original conditional was attempting to capture the definition of a bad node:

  • if we have either a focusLinkNode or a linkNode, it must match the other
  • if we have either a focusAutoLinkNode or an autoLinkNode, it must match the other

so I rewrote the logic to say that.

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2024 4:08pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2024 4:08pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 3, 2024
@agriffis
Copy link
Copy Markdown
Contributor Author

agriffis commented Apr 3, 2024

@HarrySIV It looks like I can't explicitly request a code review from you. Mind taking a gander?

@HarrySIV
Copy link
Copy Markdown
Contributor

HarrySIV commented Apr 3, 2024

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants