onDismiss

fun onDismiss(action: () -> Unit)

Executes the given action when the PopUpPanel is dismissed, i.e. by clicking outside the element or pressing the Escape key.

See also