Replies: 2 comments 1 reply
-
I second this, I would like to be able to trigger my own |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have the same issue as well. It would be nice if Headless UI would "wrap" callbacks it overrides. For the meantime I found this workaround: <Popover.Button as={Fragment}>
<button onClick={myOwnHandleClick}>
…
</button>
</Popover.Button> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now in @headlessui/react's Popover.Button you gobble up any reference to the onClick on the Popover.Button. I have a case where I am basically building a popconfirm on a destructive action in the UI with a popover. If the user hits YES in that popover then it should trigger some network call and close the popover. Is there a reason the passed onClick is overrode rather than called along with the internal one?
Beta Was this translation helpful? Give feedback.
All reactions