Skip to content

Commit

Permalink
fix(RadioButton): 外部からのidをdefaultIdより優先するように修正 (#4948)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qs-F authored Sep 25, 2024
1 parent 8b610fd commit 26f689a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const RadioButton = forwardRef<HTMLInputElement, Props>(
)

const defaultId = useId()
const radioButtonId = defaultId || props.id
const radioButtonId = props.id || defaultId

return (
<span className={wrapperStyle}>
Expand Down

0 comments on commit 26f689a

Please sign in to comment.