How to have Dialog with Tooltip where the tooltip does not reopen when I close the Dialog #4123
DevDeepakBhattarai
started this conversation in
General
Replies: 2 comments
-
This has been an issue for me too. Tried doing my own custom hook to restore focus and to avoid too many components being nested but the tooltip is popping up when restoring the focus to the element that opened the dialog. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I also have this issue, what I did was add onCloseAutoFocus={(e) => e.preventDefault()} to the dialog content. |
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
-
I am currently using the code below for the tooltip dialog combo
But when ever I close the dialog the tooltip reopens , I don't want that behavior.
I tried to use seperate state for the tooltip , and set the tooltip closed when ever my dialog was open but , it did not work as I had set
the
onOpenChange
of the tooltip tosetIsTooltipOpen
. It seems like the tooltip is opened after some timeI also tired to dispach a
mouseout
event in the button but that also did not work.I tried clicking on the document after I closed the dialog and even that did not work
How can i fix it ?
Beta Was this translation helpful? Give feedback.
All reactions