go icon indicating copy to clipboard operation
go copied to clipboard

x/pkgsite: Wrong section expanded when clicking a collapsable header

Open dan0delellis opened this issue 3 weeks ago • 4 comments

What is the URL of the page with the issue?

Any documentation page on pkg.go.dev is susceptible. Example pages: https://pkg.go.dev/time https://pkg.go.dev/encoding/json

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:145.0) Gecko/20100101 Firefox/145.0

Screenshot

Image Image

What did you do?

Open page, click 'Types' or 'Functions' in the left navigation pane

What did you expect to see?

An expanded list of available Types or Functions, respectively, in the time package

What did you see instead?

An expanded list of Examples

dan0delellis avatar Dec 04 '25 03:12 dan0delellis

CC @golang/pkgsite.

dmitshur avatar Dec 04 '25 16:12 dmitshur

Thanks for the report; I see the same behavior. I suspect the fix is pretty straightforward.

adonovan avatar Dec 04 '25 20:12 adonovan

I’m pretty sure this is a duplicate of https://github.com/golang/go/issues/75369.

linsite avatar Dec 06 '25 03:12 linsite