modal: prevent keystroke escape (fix #362)

pull/387/head
Varun Patil 2023-01-21 09:07:58 -08:00
parent a4f276b605
commit 284901537d
1 changed files with 3 additions and 3 deletions

View File

@ -1,12 +1,12 @@
<template> <template>
<NcModal <NcModal
:size="size" :size="size"
@close="close"
:outTransition="true" :outTransition="true"
:style="{ width: isSidebarShown ? `calc(100% - ${sidebarWidth}px)` : null }" :style="{ width: isSidebarShown ? `calc(100% - ${sidebarWidth}px)` : null }"
:additionalTrapElements="trapElements" :additionalTrapElements="trapElements"
@close="close"
> >
<div class="container"> <div class="container" @keydown.stop="true">
<div class="head"> <div class="head">
<span> <slot name="title"></slot> </span> <span> <slot name="title"></slot> </span>
</div> </div>
@ -128,4 +128,4 @@ export default defineComponent({
} }
} }
} }
</style> </style>