File tree 1 file changed +4
-1
lines changed
packages/coreui-vue/src/components/offcanvas
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.
@@ -90,7 +91,7 @@ const COffcanvas = defineComponent({
90
91
*/
91
92
'show' ,
92
93
] ,
93
- setup ( props , { slots , emit } ) {
94
+ setup ( props , { attrs , emit, slots } ) {
94
95
const offcanvasRef = ref ( )
95
96
const visible = ref ( props . visible )
96
97
@@ -170,13 +171,15 @@ const COffcanvas = defineComponent({
170
171
h (
171
172
'div' ,
172
173
{
174
+ ...attrs ,
173
175
class : [
174
176
{
175
177
[ `offcanvas${
176
178
typeof props . responsive === 'boolean' ? '' : '-' + props . responsive
177
179
} `] : props . responsive ,
178
180
[ `offcanvas-${ props . placement } ` ] : props . placement ,
179
181
} ,
182
+ attrs . class ,
180
183
] ,
181
184
onKeydown : ( event : KeyboardEvent ) => handleKeyDown ( event ) ,
182
185
ref : offcanvasRef ,
You can’t perform that action at this time.
0 commit comments