Do not toggle "collapsable" class during the transition

Fix for issue #6512