(event: MouseEvent)
| 53 | } |
| 54 | |
| 55 | const handleClickOutside = (event: MouseEvent) => { |
| 56 | if ( |
| 57 | modalRef.current && |
| 58 | !modalRef.current.contains(event.target as Node) |
| 59 | ) { |
| 60 | setDialogState({ |
| 61 | ...dialogState, |
| 62 | open: false, |
| 63 | }) |
| 64 | clearModalContent() |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | const handleClose = () => { |
| 69 | setDialogState({ ...dialogState, open: false }) |
nothing calls this directly
no test coverage detected