You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A heading deep link puts the first Tab on a TOC row #309
On desktop, a pad opened from a heading deep link (?h=) puts the first Tab on a TOC row, not on "Skip to main content" (#248).
The cause is a heading scrollIntoView in the TipTap chunk. scrollIntoView also moves Chrome's sequential focus navigation starting point. The same bug in useHeadingScrollSpy.tsalignTocItem was fixed by scrolling the TOC container directly.
Fix
Find the heading scrollIntoView call that runs on a ?h= load. Scroll the editor's own scroll container instead, or restore the focus starting point after the scroll.
Check
Load a pad with ?h=<heading slug>&id=<heading id> on desktop. scrollDown in TipTap.tsx reads id, so ?h= alone does not scroll and does not show the bug. The first Tab lands on "Skip to main content", and the heading is still scrolled into view.
Shipped in dd8f13c3f, with a review follow-up in 5cfcc023d. A ?h= load now scrolls the editor's own scroller, not the heading's scrollIntoView. So the first Tab lands on "Skip to main content", and the heading still scrolls into view.
Activity
HMarzban commentedon Oct 25, 2026
Built and committed on local main. Awaits the maintainer's final push.
Remaining gate: the webapp deploy.
fix(webapp): keep the skip link first in Tab order after a heading de…
refactor: cross-review wave-1
HMarzban commentedon Nov 3, 2026
Shipped in
dd8f13c3f, with a review follow-up in5cfcc023d. A?h=load now scrolls the editor's own scroller, not the heading'sscrollIntoView. So the first Tab lands on "Skip to main content", and the heading still scrolls into view.