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
My bad luck was i thought the compiler was passing my method reference to Dialog.addCollapseListener(CollapseListener) , but i was actually registering a CollapseHandler to Dialog.addCollapseListener(CollapseHandler) and CollapseHandlers are not fired by Dialog.close/onClose.
The text was updated successfully, but these errors were encountered:
IM using a Dialog and i wanted to know when the user closed a dialog via ESC etc.
My code had a fragment similar to
But my
onClose
was not being called.Turns out there are two overloads:
My bad luck was i thought the compiler was passing my method reference to Dialog.addCollapseListener(CollapseListener) , but i was actually registering a CollapseHandler to Dialog.addCollapseListener(CollapseHandler) and CollapseHandlers are not fired by Dialog.close/onClose.
The text was updated successfully, but these errors were encountered: