modal: prevent keystroke escape (fix #362)
parent
a4f276b605
commit
284901537d
|
@ -1,12 +1,12 @@
|
|||
<template>
|
||||
<NcModal
|
||||
:size="size"
|
||||
@close="close"
|
||||
:outTransition="true"
|
||||
:style="{ width: isSidebarShown ? `calc(100% - ${sidebarWidth}px)` : null }"
|
||||
:additionalTrapElements="trapElements"
|
||||
@close="close"
|
||||
>
|
||||
<div class="container">
|
||||
<div class="container" @keydown.stop="true">
|
||||
<div class="head">
|
||||
<span> <slot name="title"></slot> </span>
|
||||
</div>
|
||||
|
@ -128,4 +128,4 @@ export default defineComponent({
|
|||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue