On documentation topic pages, the expand/collapse button on the Examples section is set as Expand when a page is loaded, when the examples are already expanded:
Resulting in a user having to click the Expand/Collapse button twice to collapse the section. Afterwards, the button works as expected.