Skip to content

use selection from state in insertNodeToNearestRoot and insertNodes - #4570

Merged
zurfyx merged 1 commit into
meta:mainfrom
kalvin807:fix/recover-select-from-state
Jun 1, 2023
Merged

zurfyx merged 1 commit into
meta:mainfrom
kalvin807:fix/recover-select-from-state

Conversation

@kalvin807

@kalvin807 kalvin807 commented May 29, 2023 •

Copy link
Copy Markdown
Contributor

PR to follow up #4497.

It loads selection from state if there is no selection from active editor (It could happen when an async insert happen when user focusing on element)

Perhaps we want an unit-test to test this case?

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Hi @kalvin807!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@vercel

vercel Bot commented May 29, 2023 •

Copy link
Copy Markdown

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 May 29, 2023 6:06am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2023 6:06am

@kalvin807 kalvin807 changed the title use selection from state in insertNodeToNearestRoot use selection from state in insertNodeToNearestRoot and insertNodes May 29, 2023
@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 29, 2023
@kalvin807

Copy link
Copy Markdown
Contributor Author

Strange fails, let me check why when I am free

@zurfyx zurfyx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! The failing tests are likely just flaky

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 79ee222d Deployed May 29, 2023 by vercel[bot]
Preview – lexical — 79ee222d Deployed May 29, 2023 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