Skip to content

Commit

Permalink
fix(RadioGroup): resolved disabled invalid (#1112)
Browse files Browse the repository at this point in the history
* fix(RadioGroup): resolved disabled invalid

* chore: update _common
  • Loading branch information
anlyyao authored Sep 27, 2023
1 parent 470a01a commit 35659dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/radio/radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35659dc

Please sign in to comment.