Programatically close the Menu component #971
Unanswered
lukeberry99
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're using the Menu component to house some table filters, when we click on the 'Done' button it will send off a request to our API and refresh the table in the background, but we also need it to close the our filters menu.
I've tried changing those buttons to
Menu.Button
instead of regular button components, but that closes the Menu and doesn't fire theonClick
event.I've also tried using refs to change the focus to another element on the page, the focus does change but the menu stays open.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions