Fix: theme toggle stops working after htmx navigation (stacked listeners)
The topnav is in the OOB-swapped chrome, so its <script> ran again on EVERY
htmx nav → the body click listener for the theme toggle stacked → toggle fired
2× = no net change. Now: one-time guard (window.pcmsChromeWired) + everything
via event delegation on body/document (works for OOB-inserted buttons too). Search
overlay + dropdown-close likewise.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>
(No files)
Note:
See TracChangeset
for help on using the changeset viewer.