...if custom checkbox is inside, and collapse toggle does not...
It seems like it might be related to the focus somehow though. As if you shift+tab back to the toggle button, so it has focus after clicking on a checkbox, and then click using the mouse, it animates as expected