diff --git a/CHANGELOG.md b/CHANGELOG.md index fbc3b61..ad2a490 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.4.5 - 2026-03-27 + +### Fixed + +- Fix selector for admonition title in togglebutton.js. + ## 0.4.4 - 2026-01-14 ### Fixed diff --git a/sphinx_togglebutton/_static/togglebutton.js b/sphinx_togglebutton/_static/togglebutton.js index e88c0e3..4b822bb 100644 --- a/sphinx_togglebutton/_static/togglebutton.js +++ b/sphinx_togglebutton/_static/togglebutton.js @@ -50,7 +50,7 @@ var initToggleItems = () => { // Add click handlers for the button + admonition title (if admonition) admonitionTitle = document.querySelector( - `#${toggleID} > .admonition-title` + `#` + CSS.escape(toggleID) + ` > .admonition-title` ); if (admonitionTitle) { // If an admonition, then make the whole title block clickable