modal: prevent keystroke escape (fix #362)
parent
a4f276b605
commit
284901537d
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue