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: do no close popover menu after creating a link #17977

Merged
merged 10 commits into from
Oct 26, 2023

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Oct 13, 2023

Problem

Because of the attempt to autofocus the link editor the selection is moved from the TipTap editor which causes the popover to close

Changes

  • Add a check to the shouldShow method that keeps the popover open if the current selection is within the menu
  • Fixes another bug where a URL is being typed and thus cannot be parsed

How did you test this code?

links.mp4

@posthog-bot
Copy link
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@daibhin daibhin requested a review from benjackwhite October 23, 2023 12:28
@daibhin daibhin removed the stale label Oct 23, 2023
Copy link
Contributor

@benjackwhite benjackwhite left a comment

Choose a reason for hiding this comment

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

👍

@daibhin daibhin merged commit 29fd836 into master Oct 26, 2023
74 checks passed
@daibhin daibhin deleted the dn-fix/always-show-popover-menu branch October 26, 2023 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants