Skip to content

Commit

Permalink
fix(radio): pass disabled attribute to input
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinWeb committed Oct 16, 2024
1 parent f53625b commit c3d6e55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/Form/Input/radio/src/RadioItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const RadioItem = forwardRef<HTMLInputElement, Props>(
value={value}
checked={isChecked}
ref={inputRef}
disabled={disabled}
/>
<label className="af-form__label" htmlFor={newId}>
<span className="af-form__description">{newLabel}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ exports[`Radio should have correct html rendered 1`] = `
>
<input
class="af-form__input-radio"
disabled=""
id="for-life"
type="radio"
value="4"
Expand Down

0 comments on commit c3d6e55

Please sign in to comment.