Line

ui/client/features/help/hooks/useOpenSectionOnHash

Cockpit client (features), v0.9. Source: ui/client/features/help/hooks/useOpenSectionOnHash.tsx.

Functions#

useOpenSectionOnHash()#

useOpenSectionOnHash(): void

Defined in: ui/client/features/help/hooks/useOpenSectionOnHash.tsx:10

#391: Help sections start collapsed (except Getting started), so a Contents link (#tutorials) has to open the section it points at, on the page's first load with that hash and on every later hash change. A native

does not open itself when the fragment targets the element rather than something inside it.

Returns#

void