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
Creating a select in a typescript environment: (pseudo code)
let options, // = options from somewhere onChange // = onChange from somewhere <Select className={'class'} options={options} values={[]} onChange={onChange}/>
yields the error: Property 'className' does not exist on type 'IntrinsicAttributes & ISelectProps & { children?: ReactNode; }'.
Property 'className' does not exist on type 'IntrinsicAttributes & ISelectProps & { children?: ReactNode; }'.
Observing types.d.ts in the npm package, there is no entry for className. Fixable by adding a line like: className?: string; to interface ISelectProps
className?: string;
interface ISelectProps
Workaround is to add monkey patch in code files that need className for Select:
... declare module 'react-dropdown-select' { interface ISelectProps { className?: string; } } ...
The text was updated successfully, but these errors were encountered:
91924fa
Fixed in 3.5.1 Thanks
Sorry, something went wrong.
No branches or pull requests
Creating a select in a typescript environment: (pseudo code)
yields the error:
Property 'className' does not exist on type 'IntrinsicAttributes & ISelectProps & { children?: ReactNode; }'.
Observing types.d.ts in the npm package, there is no entry for className. Fixable by adding a line like:
className?: string;
tointerface ISelectProps
Workaround is to add monkey patch in code files that need className for Select:
The text was updated successfully, but these errors were encountered: