()
| 277 | }, [handleDismiss, handleKeypress]); |
| 278 | |
| 279 | const measureMenuLayout = () => |
| 280 | new Promise<LayoutRectangle>((resolve) => { |
| 281 | if (menuRef.current) { |
| 282 | menuRef.current.measureInWindow((x, y, width, height) => { |
| 283 | resolve({ x, y, width, height }); |
| 284 | }); |
| 285 | } |
| 286 | }); |
| 287 | |
| 288 | const measureAnchorLayout = React.useCallback( |
| 289 | () => |
no outgoing calls
no test coverage detected
searching dependent graphs…