-
Notifications
You must be signed in to change notification settings - Fork 2
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
Chip component onClose prop #11
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I pass a function to the onClose prop of the Chip component, TypeScript says that that is not the expected type for that prop, it expects the undefined type.
I believe the error was not due to the update because I had an older version (14.7) and after updating the same error continued. Now I'm on version 14.28.1
Passing the function
![Screenshot 2023-10-27 at 13 39 57](https://private-user-images.githubusercontent.com/20759520/278706836-f8ddaab8-9f8b-491b-96de-8901bdc3a0a4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExOTk4MzIsIm5iZiI6MTcyMTE5OTUzMiwicGF0aCI6Ii8yMDc1OTUyMC8yNzg3MDY4MzYtZjhkZGFhYjgtOWY4Yi00OTFiLTk2ZGUtODkwMWJkYzNhMGE0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA2NTg1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwMTRjZjM3OGY5MTc3Yjc0MWMwMzJiN2E3OGIzMmI1MzgxNDhlMzRmNTE2ZGVkOTYzOTg4NmQyZGM3MTZiYjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fyfqoYmtF7jJTIr4wJhXRTKRNshtUJMN92csuOa1jkA)
Passing undefined value
![Screenshot 2023-10-27 at 13 40 23](https://private-user-images.githubusercontent.com/20759520/278706827-f9a8dc68-038b-4b05-b686-54cfaea18a47.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjExOTk4MzIsIm5iZiI6MTcyMTE5OTUzMiwicGF0aCI6Ii8yMDc1OTUyMC8yNzg3MDY4MjctZjlhOGRjNjgtMDM4Yi00YjA1LWI2ODYtNTRjZmFlYTE4YTQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDA2NTg1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ0YWM3MDg5OWNmMzU3OWIyYmI0ODcwNGVmZGM2MjExYzNlMDdiYTMyNDU0YzkxM2M0MjliYTM0ZjVjMTdkYjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.--o-m2HxS_XpjeCWaDar1ZAywfS6S7wJWEHRm46KVzs)
The text was updated successfully, but these errors were encountered: