diff --git a/src/runtime/components/elements/ButtonGroup.ts b/src/runtime/components/elements/ButtonGroup.ts index 0fd1cd36aa..99f9c7192b 100644 --- a/src/runtime/components/elements/ButtonGroup.ts +++ b/src/runtime/components/elements/ButtonGroup.ts @@ -50,9 +50,9 @@ export default defineComponent({ vProps.size = props.size } - vProps.class = node.props.class || '' + vProps.class = node.props?.class || '' vProps.class += ' !shadow-none' - vProps.ui = node.props.ui || {} + vProps.ui = node.props?.ui || {} vProps.ui.rounded = '' if (index === 0) {