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

How to keep it open for styling purposes? #265

Open
mrpsiho opened this issue Apr 26, 2024 · 1 comment
Open

How to keep it open for styling purposes? #265

mrpsiho opened this issue Apr 26, 2024 · 1 comment

Comments

@mrpsiho
Copy link

mrpsiho commented Apr 26, 2024

On this page https://fkhadra.github.io/react-contexify/theme-builder the menu always visible. How could I achieve the same? Is it a prop I have to use or any other way? The thing is I am using custom items and I need to use devtools to inspect and styles them. But when I try using devtools - the menu is getting closed. How to keep it opened?

@SethReloaded
Copy link

SethReloaded commented Jun 27, 2024

I've run into the same issue.
You can just add a "onVisibilityChange" event handler to your Menu and set a breakpoint in your eventhandler.
The event is fired before the element disappears, therefore you can inspect the item then. Although a bit clunky, this worked for me. Don't now if this is still relevant though :)

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

No branches or pull requests

2 participants