From 35659dc7f6df753c5126693e90560153e10519f5 Mon Sep 17 00:00:00 2001 From: Y Date: Wed, 27 Sep 2023 10:06:56 +0800 Subject: [PATCH] fix(RadioGroup): resolved disabled invalid (#1112) * fix(RadioGroup): resolved disabled invalid * chore: update _common --- src/_common | 2 +- src/radio/radio.vue | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/_common b/src/_common index ce857fc94..fbf4c99b8 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit ce857fc94ef67b3a238ff524b395966ba3127678 +Subproject commit fbf4c99b87fcfdbdfb83147a1bf96c57d1848dd2 diff --git a/src/radio/radio.vue b/src/radio/radio.vue index 340bb2a54..37b227419 100644 --- a/src/radio/radio.vue +++ b/src/radio/radio.vue @@ -66,7 +66,9 @@ export default defineComponent({ const rootGroupValue = inject('rootGroupValue', {}) as Ref; const rootGroupChange = inject('rootGroupChange', NOOP) as (val: RadioValue, e: Event) => void; - const formDisabled = useFormDisabled(); + // extend radioGroup disabled props + const groupDisabled = computed(() => rootGroupProps?.disabled); + const formDisabled = useFormDisabled(groupDisabled); const disabled = computed(() => { if (formDisabled.value == null && 'disabled' in rootGroupProps) return rootGroupProps.disabled;