()
| 67 | const wrapperRef = useRef<HTMLDivElement>(null) |
| 68 | |
| 69 | function onScroll() { |
| 70 | if (!tableRef.current) return |
| 71 | const table = tableRef.current |
| 72 | const rect = table.getBoundingClientRect() |
| 73 | if (rect.top < 0) { |
| 74 | wrapperRef.current!.style.display = "block" |
| 75 | } else { |
| 76 | wrapperRef.current!.style.display = "none" |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | function onTableScroll(e: Event) { |
| 81 | if (!fixedHeaderRef.current) return |
nothing calls this directly
no outgoing calls
no test coverage detected