useButton and useOverlayTriggerState interacting in strange way
#3593
Unanswered
brandonpittman
asked this question in
Q&A
Replies: 1 comment
-
|
Apologies about the delay, do you happen to have a codesandbox you can share for your datepicker? I assume the trigger button is getting its props from useDatePicker? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I have a few overlays in an app I'm working on. One of them is a little action menu. Everything behaves as expected.
CleanShot.2022-10-04.at.16.38.45.mp4
This date picker, however, can't close when clicking the trigger a second time.
CleanShot.2022-10-04.at.16.37.55.mp4
More accurately, it sets
state.isOpentofalseas expected, and then sets it back totrueagain. I noticed that if I click without releasing, and drag the mouse away, it stays closed. The state only changes back totrueonpointerUp. I've confirmed thepressevent fromuseButton'sbuttonPropsis only firing once though.Any idea what could be happening here?
Beta Was this translation helpful? Give feedback.
All reactions