Questions tagged [react-outside-click-handler]
4 questions
1
vote
0 answers
How to prevent mui Tooltip from closing when pressed on date popper inside tooltip
I have a Tooltip that serves as a date filter. It has two different date inputs one is for from date and other is for to date, there are also two buttons one is to clear filters and other is to apply them. When I clear filter tooltip is closed, but…

Evaldas
- 169
- 7
0
votes
0 answers
Sheet component is closing when user clicks on Popover menu item
I have a simple Sheet component which contains Popover menu within. My Sheet has close on outside click functionality. Its using React hook useOnClickOutside similar to one here https://usehooks.com/useOnClickOutside/
ref is just sheet ref const ref…

Milos Pruginic
- 31
- 4
0
votes
0 answers
Non-MUI component as renderInput prop of TimePicker (@mui/x-date-pickers)
I have the following implementation of MUI's TimePicker:
{
newValue && setResultTime(newValue);
}}
renderInput={(props) => {
…

serlingpa
- 12,024
- 24
- 80
- 130
0
votes
0 answers
OutsideClickHandler not firing in React Testing Library
I'm not able to get trigger the outside click handler from my component inside a React Testing Library test. Runs fine on the client, so just a testing issue.
const Modal = ({ children, onClose }) => (
…

Jadam
- 1,650
- 1
- 19
- 40