diff options
| author | Marie <github@yuugi.dev> | 2024-10-02 17:26:23 +0200 |
|---|---|---|
| committer | Marie <github@yuugi.dev> | 2024-10-02 17:26:23 +0200 |
| commit | 321e7daab53a91464b9fd2f91f365dd01f42a9da (patch) | |
| tree | a343365e320599993f55e5ade8292cedfd2baa4b /packages/frontend/src/components/MkPostFormDialog.vue | |
| parent | upd: remove duplication (diff) | |
| download | sharkey-321e7daab53a91464b9fd2f91f365dd01f42a9da.tar.gz sharkey-321e7daab53a91464b9fd2f91f365dd01f42a9da.tar.bz2 sharkey-321e7daab53a91464b9fd2f91f365dd01f42a9da.zip | |
chore: add comments
Diffstat (limited to 'packages/frontend/src/components/MkPostFormDialog.vue')
| -rw-r--r-- | packages/frontend/src/components/MkPostFormDialog.vue | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkPostFormDialog.vue b/packages/frontend/src/components/MkPostFormDialog.vue index 116ea86873..811a6378f2 100644 --- a/packages/frontend/src/components/MkPostFormDialog.vue +++ b/packages/frontend/src/components/MkPostFormDialog.vue @@ -51,7 +51,9 @@ function onPosted() { } function onCancel() { + // for some reason onModalClosed does not get called properly when closing the model through other functions. modal.value?.close(); + // emit is required so that the dialog gets properly disposed otherwise it will float around as a "zombie" emit('closed', true); } |