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
I want to add "id" property to the "Select" component like this
<Select id="test"> // blabla </Select>
It says:
Property 'id' does not exist on type 'IntrinsicAttributes & SelectProps'.
Select
Just try this:
No response
Windows 11, Chrome
The text was updated successfully, but these errors were encountered:
export interface SelectProps { children?: React.ReactNode; value?: string; defaultValue?: string; onValueChange?(value: string): void; open?: boolean; defaultOpen?: boolean; onOpenChange?(open: boolean): void; dir?: Direction; name?: string; autoComplete?: string; disabled?: boolean; required?: boolean; } export const Select: React.FC<SelectProps>;
as we can see SelectProps does not have "id " as an type , there can be two ways to add it
we could add direct id type in SelectProp
we could extend its types as HTMLElement<> it could infer those default types , i need some guide related to this if we really have to do this .....
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I want to add "id" property to the "Select" component like this
It says:
Property 'id' does not exist on type 'IntrinsicAttributes & SelectProps'.
Affected component/components
Select
How to reproduce
Just try this:
Codesandbox/StackBlitz link
No response
Logs
No response
System Info
Before submitting
The text was updated successfully, but these errors were encountered: