Skip to content
Discussion options

You must be logged in to vote

@dheeraj-murali I just had a go at this to make sure the open prop was still working correctly, and I think the missing part of your puzzle is that you need to add event.preventDefault() on the action click. All of our built in default behaviours can be prevented this way: https://codesandbox.io/s/condescending-stitch-9e0x0?file=/src/App.js

[...] using a normal button instead, but It's doesn't feel right.

Indeed... I would recommend always trying to use our parts because we may bind improved functionality/accessibility in future which you would lose out on if you used your own parts.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dheeraj-murali
Comment options

@mamlzy
Comment options

Answer selected by dheeraj-murali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants