Files
landing_page/qdrant-landing/themes/qdrant-2024/layouts/partials/documentation
Abdon PijpelinkandClaude Sonnet 4.6 1321a7fcce fix(docs): prevent iOS Safari from navigating on sidebar section tap (#2646)
* fix(docs): prevent iOS Safari from navigating on sidebar section tap

On iOS/iPadOS, tapping a collapsed section in the documentation sidebar
followed the <a> href inside the <summary> instead of toggling the
<details> element. This navigated away from the page and closed the
hamburger menu.

Added a click handler in documentation.js that intercepts the link tap
when the parent <details> is closed, preventing navigation and manually
expanding the section instead. Tapping an already-open section still
navigates to the section root page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* Fix issue where all clicks on a collapsed section header were intercepted, preventing navigation even when tapping the link text. Now only taps in the chevron zone (right-padding area of the link) trigger the toggle.

Wraps the title text in a <span> to mark the text boundary, then uses getBoundingClientRect() to compare the tap's X position against the span's right edge. This is more reliable than checking e.target, which iOS Safari inconsistently reports as the parent <a> for non-interactive child elements.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-21 14:01:43 +02:00
..
2026-03-11 23:33:42 +01:00
2026-03-11 23:33:42 +01:00
2024-11-14 18:59:28 +01:00
2026-03-11 23:33:42 +01:00
2026-03-11 23:33:42 +01:00