Skip to content

Commit

Permalink
fix(#1837): radio doesn't work on mac and chrome browser
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessatran-ddi authored and ArakTaiRoth committed May 9, 2024
1 parent 58a0181 commit cddef31
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@
children.forEach((el, index) => {
const option = el as unknown as RadioOption & { innerText: string };
const optionValue = el.getAttribute("value") || option.value;
option.setAttribute("disabled", isDisabled);
if (isDisabled) {
option.setAttribute("disabled", isDisabled);
}
option.setAttribute("error", isError);
option.setAttribute("name", name);
option.setAttribute("checked", optionValue === value);
Expand Down

0 comments on commit cddef31

Please sign in to comment.