how to get the full event object when using RadioGroup in react

There is two difference in next version (v1.x) and stable version v0.x of chakra-ui

in <RadioGroup /> (v0.x)

onChange?: (
    event: React.ChangeEvent<HTMLInputElement>,
    value: IRadio["value"],
  ) => void;

and in <RadioGroup /> (v1.x)

onChange?(nextValue: StringOrNumber): void;

And if you wanna get access to the event, you may downgrade the version of your chakra-ui

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top