fix: properly close media dialog on Esc key (#946)
parent
74148d71b0
commit
6e7813020e
|
@ -71,9 +71,10 @@ const handleFavouritedBoostedByClose = () => {
|
|||
/>
|
||||
</ModalDialog>
|
||||
<ModalDialog
|
||||
v-model="isMediaPreviewOpen"
|
||||
:model-value="isMediaPreviewOpen"
|
||||
w-full max-w-full h-full max-h-full
|
||||
bg-transparent border-0 shadow-none
|
||||
@update:model-value="closeMediaPreview"
|
||||
>
|
||||
<ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" />
|
||||
</ModalDialog>
|
||||
|
|
Loading…
Reference in New Issue