We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript complains when setting a value on a Radio element:
<Radio name='option' label='Option 1' value='option1' /> <Radio name='option' label='Option 2' value='option2' />
Type '{ name: string; label: string | object | (string | object)[] | undefined; value:'option1'; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'. Property 'value' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<{ children?: ReactNode; }>'. TS2322
Then manually adding an 'value: string' option to the definition it works (like plain JS).
The text was updated successfully, but these errors were encountered:
How did you fix the problem?
Sorry, something went wrong.
No branches or pull requests
Typescript complains when setting a value on a Radio element:
Then manually adding an 'value: string' option to the definition it works (like plain JS).
The text was updated successfully, but these errors were encountered: