#1169 Collapsible: It should emit beforeshow and beforehide events.