You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
They allow to transparently handle transitions, by, among other things, wrapping the onClose callback so that it is not really invoked until the out transition has finished.
This is convenient, because consumers do not need to worry about transitions. However, the onClose callback itself knows nothing about transitions, which means if it's called from outside the component, it hides the component without transition.
In the sidebar that can happen if the toolbar buttons are "clicked" while the corresponding panel is visible.
See the behavior when the panels are closed through their own close button (they have transition):
with-transition.webm
Vs "clicking" the toolbar button (no transition. Closed immediately):
with-no-transition.webm
The text was updated successfully, but these errors were encountered:
Some time ago we introduced the concept of
TransitionComponent
s in frontend-shared (see hypothesis/frontend-shared#957 and hypothesis/frontend-shared#975), and updated the sidebar panels to use this new approach.They allow to transparently handle transitions, by, among other things, wrapping the
onClose
callback so that it is not really invoked until theout
transition has finished.This is convenient, because consumers do not need to worry about transitions. However, the
onClose
callback itself knows nothing about transitions, which means if it's called from outside the component, it hides the component without transition.In the sidebar that can happen if the toolbar buttons are "clicked" while the corresponding panel is visible.
See the behavior when the panels are closed through their own close button (they have transition):
with-transition.webm
Vs "clicking" the toolbar button (no transition. Closed immediately):
with-no-transition.webm
The text was updated successfully, but these errors were encountered: