File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
packages/coreui-vue/src/components/offcanvas Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import { executeAfterTransition } from '../../utils/transition'
7
7
8
8
const COffcanvas = defineComponent ( {
9
9
name : 'COffcanvas' ,
10
+ inheritAttrs : false ,
10
11
props : {
11
12
/**
12
13
* Apply a backdrop on body while offcanvas is open.
@@ -94,7 +95,7 @@ const COffcanvas = defineComponent({
94
95
*/
95
96
'show' ,
96
97
] ,
97
- setup ( props , { slots , emit } ) {
98
+ setup ( props , { attrs , emit, slots } ) {
98
99
const offcanvasRef = ref ( )
99
100
const visible = ref ( props . visible )
100
101
@@ -175,13 +176,15 @@ const COffcanvas = defineComponent({
175
176
h (
176
177
'div' ,
177
178
{
179
+ ...attrs ,
178
180
class : [
179
181
{
180
182
[ `offcanvas${
181
183
typeof props . responsive === 'boolean' ? '' : '-' + props . responsive
182
184
} `] : props . responsive ,
183
185
[ `offcanvas-${ props . placement } ` ] : props . placement ,
184
186
} ,
187
+ attrs . class ,
185
188
] ,
186
189
onKeydown : ( event : KeyboardEvent ) => handleKeyDown ( event ) ,
187
190
ref : offcanvasRef ,
You can’t perform that action at this time.
0 commit comments