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

Commit 9b0e710

Browse files
committed
fix: group context fallback
1 parent dbf545d commit 9b0e710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/c-checkbox/src/checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export const CCheckbox: ComponentWithProps<CCheckboxProps> = defineComponent({
176176
},
177177
emits: ["change", "update:modelValue"],
178178
setup(props, { slots, attrs, emit }) {
179-
const group = useCheckboxGroupContext()
179+
const group = useCheckboxGroupContext(computed(() => ({})))
180180
const ownProps = computed(() => omitThemingProps(props))
181181
const mergedProps = computed(() => mergeWith({}, group.value, props, attrs))
182182
const styles = useMultiStyleConfig("Checkbox", mergedProps)

0 commit comments

Comments
 (0)