Using the hide and show events may too late to handle the shortcuts when Collapsible has the animations. By using beforeshow and beforehide we can be sure that shortcuts always will work as expected since this events are triggers always at the same moment independently of animations.
Using the
hide
andshow
events may too late to handle the shortcuts when Collapsible has the animations. By usingbeforeshow
andbeforehide
we can be sure that shortcuts always will work as expected since this events are triggers always at the same moment independently of animations.