Closed Kassy2048 closed 1 year ago
It was the intended behavior, so not a bug.
Regardless. The behavior was changed, back in November 2022, via commit 96ddf9a to align with your feature request.
I'm closing this as redundant.
Aw sorry, I couldn't find a ticket or discussion about that behavior. Thanks for having changed it then 😁
Describe the bug. If a close callback (
closeFn
) has been given when callingDialog.open()
, that callback is not invoked when closing the dialog from code usingDialog.close()
. The callback is only called when the user manually closes the dialog using mouse or keyboard.To Reproduce:
Expected behavior. Clicking the "Click Me" link should close the dialog and show the alert message. It only closes the dialog though, so the close callback is not called. Clicking on the "X" close button instead does invoke the callback.
Workaround.
Project details.