Skip to content
New issue

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

dropdown props missing "style" property in typescript type definition #117

Open
maxeth opened this issue Aug 24, 2021 · 1 comment
Open
Milestone

Comments

@maxeth
Copy link

maxeth commented Aug 24, 2021

The docs show an example of manually styling the dropdown using the style attribute, yet the attribute is not recognized by typescript on neither the CountryDropdown nor the RegionDropdown. I haven't looked into it thoroughly, but I believe it would be good to add

 style?: React.CSSProperties;

to the (Country- &)RegionDropdownProps interface in the index.d.ts file.

@benkeen benkeen added this to the 4.0.0 milestone Dec 17, 2021
@sawfiz
Copy link

sawfiz commented Jan 10, 2024

I encountered the same issue.

Did you find a workaround?

Perhaps also consider className so we can pass CSS classes as style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants