Bug
The Accordion live preview on https://www.rubyui.com/docs/accordion is broken: clicking a trigger does nothing — the content never reveals and the chevron icon never rotates.
Root cause
The ruby_ui gem's accordion Stimulus controller was fixed in 0897b2a ("[Bug Fix] Accordion: hide closed content properly instead of zero height", #168/#433) to toggle the hidden attribute alongside the height animation. The docs/ app keeps its own copy of Stimulus controllers (docs/app/javascript/controllers/ruby_ui/accordion_controller.js), and that copy was never updated after the gem fix — it's still on the pre-#168 version, which always leaves hidden set on the content element regardless of the height animation, so the panel never becomes visible.
The gem component itself (gem/lib/ruby_ui/accordion/accordion_controller.js) is correct and not affected.
Steps to reproduce
- Visit https://www.rubyui.com/docs/accordion
- Click "What is RubyUI?" in the Preview example
- Nothing happens — expected the panel to expand and the chevron to rotate
Bug
The Accordion live preview on https://www.rubyui.com/docs/accordion is broken: clicking a trigger does nothing — the content never reveals and the chevron icon never rotates.
Root cause
The
ruby_uigem's accordion Stimulus controller was fixed in 0897b2a ("[Bug Fix] Accordion: hide closed content properly instead of zero height", #168/#433) to toggle thehiddenattribute alongside the height animation. Thedocs/app keeps its own copy of Stimulus controllers (docs/app/javascript/controllers/ruby_ui/accordion_controller.js), and that copy was never updated after the gem fix — it's still on the pre-#168 version, which always leaveshiddenset on the content element regardless of the height animation, so the panel never becomes visible.The gem component itself (
gem/lib/ruby_ui/accordion/accordion_controller.js) is correct and not affected.Steps to reproduce