fix: properly close media dialog on Esc key (#946)

zio/stable
Ivan Demchuk 2023-01-10 21:57:12 +02:00 committed by GitHub
parent 74148d71b0
commit 6e7813020e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -71,9 +71,10 @@ const handleFavouritedBoostedByClose = () => {
/> />
</ModalDialog> </ModalDialog>
<ModalDialog <ModalDialog
v-model="isMediaPreviewOpen" :model-value="isMediaPreviewOpen"
w-full max-w-full h-full max-h-full w-full max-w-full h-full max-h-full
bg-transparent border-0 shadow-none bg-transparent border-0 shadow-none
@update:model-value="closeMediaPreview"
> >
<ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" /> <ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" />
</ModalDialog> </ModalDialog>