Skip to content

Fix flow round II - #2261

Merged
acywatson merged 1 commit into
mainfrom
fix-flow-2
May 24, 2022
Merged

acywatson merged 1 commit into
mainfrom
fix-flow-2

Conversation

@acywatson

Copy link
Copy Markdown
Contributor

These methods will always return an ElementNode, but the method itself is on LexicalNode, so adding "this" to the return type means that TextNode.getTopLevelElement() returns a union of TextNode or ElementNode, which is wrong and causes issues downstream.

@vercel

vercel Bot commented May 24, 2022

Copy link
Copy Markdown

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

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview May 24, 2022 at 10:00PM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview May 24, 2022 at 10:00PM (UTC)

@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 May 24, 2022

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — fe00b617 Deployed May 24, 2022 by vercel[bot]
Preview – lexical — fe00b617 Deployed May 24, 2022 by vercel[bot]
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.

3 participants