diff --git a/src/components/timeline.jsx b/src/components/timeline.jsx index d4696502..d35692fb 100644 --- a/src/components/timeline.jsx +++ b/src/components/timeline.jsx @@ -388,6 +388,17 @@ function Timeline({ dotRef.current = node; }} tabIndex="-1" + onClick={(e) => { + // If click on timeline item, unhide header + if ( + headerRef.current && + e.target.closest('.timeline-item, .timeline-item-alt') + ) { + setTimeout(() => { + headerRef.current.hidden = false; + }, 250); + } + }} >