Hello! Is there a chance to set one of radiobuttons as checked by default?
When I set state as checked as default It throws me warnings in console, like this:
Warning: Failed prop type: You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.
Maybe you could provide defaultChecked option to RadioButton?
Best regards
Radio Button default selection throws warnings
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Fixed for 1.6.0.
Best Regards,
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 10 guests