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

Add shouldShow callback to bubble menu #1710

Closed

Conversation

georgeboot
Copy link

Relates to #1480
Relates to #1313 (see #1313 (comment))

This PR adds a shouldOpen callback for the bubble menu. This allows users to control whether the bubbleMenu should open or not. By default, the new callback will always return true so there isn't an issue with bc.

@hanspagel
Copy link
Contributor

I think that’s a great PR! @philippkuehn What do you think?

@georgeboot Any chance you could add a usage example to the docs?

@georgeboot
Copy link
Author

@hanspagel I've made a few tweaks and added a real usage example to the docs

@philippkuehn
Copy link
Contributor

Hey, thanks for that but this is a really bad timing because I’ve done this in a separate branch yesterday 😬
In this branch I’m adding some more features for menus so I’m closing this here.

@hanspagel
Copy link
Contributor

@philippkuehn Oh! Can you make sure to also keep a usage example in the docs?

@philippkuehn
Copy link
Contributor

Jep, on it!

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