Closed hognevevle closed 2 years ago
Looks good thank you :-)
I would either remove $close entirely (in that case we'll release a v2 because it's a breaking change) or keep it exactly as it was (same signature and still need to pass this even if it isn't useful anymore) for backward compatibility and mark it deprecated. Either way I'll update the docs to remove all references to $close and document the new function closeDialog.
Allows to close a dialog from within the setup function of the dialog component
Closes #4
TODO: Fix typing of
comp
and update docs (we no longer should passthis
when calling$close
)