(event: MouseEvent)
| 71 | if (!externalDoc || externalDoc === document) return; |
| 72 | |
| 73 | const handleMouseUp = (event: MouseEvent) => { |
| 74 | const content = popperContentRef.current; |
| 75 | if (content && content.contains((event.target: any))) return; |
| 76 | if (doesPathContainDialog((event: any).composedPath())) return; |
| 77 | |
| 78 | onApply(); |
| 79 | }; |
| 80 | |
| 81 | externalDoc.addEventListener('mouseup', handleMouseUp); |
| 82 | return () => { |
nothing calls this directly
no test coverage detected