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

This commit is contained in:
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

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>