Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inserting link open editor in edit mode #5458

Merged
merged 6 commits into from
Jan 17, 2024

Conversation

2wheeh
Copy link
Contributor

@2wheeh 2wheeh commented Jan 7, 2024

fixes #5355

The issue seemed to be fixed in #5372 but it got reverted in #5456 because this broke some links, autolinks e2e tests.
It was because #5372 changed scenario of link editor a bit without modifying it in the tests accordingly.

So I added the e2e test modification in this PR.

And plus, #5372 missed the case of floating toolbar, which could be some other issue. (which needs setIsLinkEditMode to be passed to InlineImageComponent on current implementation so it might need to refactor InlineImageComponent)

Copy link

vercel bot commented Jan 7, 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 Jan 7, 2024 0:01am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 7, 2024 0:01am

@2wheeh
Copy link
Contributor Author

2wheeh commented Jan 7, 2024

I don't really know much about different selection behaviors per browsers so please let me know if i'v done something wrong here : fix selection assertion

@acywatson acywatson merged commit 17a2e3b into facebook:main Jan 17, 2024
45 checks passed
@2wheeh 2wheeh deleted the fix-insert-link-open-editor branch January 18, 2024 01:01
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.

Bug: Inserting a new hyperlink using toolbar should open the editor edtiable mode
3 participants