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

Type 'null' is not assignable to type 'IconOrRenderFunction | undefined' #296

Closed
aslampr07 opened this issue Apr 11, 2023 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@aslampr07
Copy link

When setting clearIcon={null} I am getting the following typescript error

Type 'null' is not assignable to type 'IconOrRenderFunction | undefined'.ts(2322)
TimePicker.d.ts(13, 5): The expected type comes from property 'clearIcon' which is declared here on type 'IntrinsicAttributes & Pick<TimePickerProps, "className" | "autoFocus" | "id" | "name" | "onChange" | "onFocus" | "value" | "required" | ... 46 more ... | "secondPlaceholder"> & Pick<...> & Pick<...>'

Any idea on how to fix this?
Screenshot_20230411_134246

@wojtekmaj wojtekmaj added the bug Something isn't working label Apr 11, 2023
@wojtekmaj
Copy link
Owner

My bad

@wojtekmaj
Copy link
Owner

Fixed in v6.0.4

@aslampr07
Copy link
Author

aslampr07 commented Apr 11, 2023

Thanks @wojtekmaj. Search for the ideal timepicker for me ends here.

I was pulling my hair trying to create a custom timepicker for my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants