Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 3b11d0b

Browse files
committed
fix(layout): fix kebab case prop
1 parent 619e65a commit 3b11d0b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/layout/src/heading.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
ThemingProps,
66
useStyleConfig,
77
HTMLChakraProps,
8-
extractStyleAttrs,
98
} from '@chakra-ui/vue-system'
109
import { computed, defineComponent, h, PropType } from '@vue/runtime-core'
1110
import { filterUndefined } from '@chakra-ui/utils'
@@ -32,17 +31,16 @@ export const CHeading = defineComponent({
3231
})
3332
)
3433
const styles = useStyleConfig('Heading', themingProps.value)
35-
// convert attrs like `is-truncated` to `isTruncated`
36-
const styleAttrs = extractStyleAttrs(attrs).styles as any
3734

3835
return () => {
3936
return h(
4037
chakra(props.as, {
4138
label: 'heading',
42-
...styleAttrs,
43-
__css: styles.value,
4439
}),
45-
{},
40+
{
41+
...attrs,
42+
__css: styles.value,
43+
},
4644
slots
4745
)
4846
}

0 commit comments

Comments
 (0)