forked from Mirrors/elk
fix: properly close media dialog on Esc key (#946)
This commit is contained in:
parent
74148d71b0
commit
6e7813020e
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue