Files
landing_page/qdrant-landing/themes/qdrant-2024/layouts
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
..
2025-05-30 13:14:31 +02:00
2026-06-04 15:53:31 +02:00
2024-11-25 12:21:28 +01:00
2024-05-21 09:57:56 +02:00
2025-06-03 20:47:04 +02:00
2024-06-17 15:56:32 +02:00
2025-06-03 20:47:04 +02:00
2024-05-21 09:57:56 +02:00
2024-05-21 09:57:56 +02:00
2026-04-07 23:52:18 +02:00
2024-05-21 09:57:56 +02:00
2026-02-19 23:13:19 +01:00
2026-02-19 17:31:46 +01:00
2026-07-17 15:23:55 +02:00
2026-02-19 17:24:45 +01:00
2026-05-26 12:18:03 +02:00
2024-06-17 15:56:32 +02:00
2024-05-21 09:57:56 +02:00
2026-07-31 20:08:21 +02:00
2024-05-21 09:57:56 +02:00
2026-08-07 19:40:24 +02:00
2024-06-17 15:56:32 +02:00
2024-05-21 09:57:56 +02:00
2026-04-24 22:01:34 +02:00
2026-07-02 20:08:23 +02:00
2026-03-11 23:27:37 +01:00