You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the component, the onInput can be set to 0 from the client usage, even though it errors saying that it should be a callback function, its possible to, at least in dev mode, display the 0 in terminal as visible in the attached screenshot.
To Reproduce
pass 0 to onInput prop when rendering
Expected behavior
The short-circuit verification on the lib should check if onInput is indeed a function to prevent this from happening.
Screenshots
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the component, the onInput can be set to 0 from the client usage, even though it errors saying that it should be a callback function, its possible to, at least in dev mode, display the 0 in terminal as visible in the attached screenshot.
To Reproduce
pass 0 to onInput prop when rendering
Expected behavior
The short-circuit verification on the lib should check if onInput is indeed a function to prevent this from happening.
Screenshots
![image](https://private-user-images.githubusercontent.com/80011318/284685078-04ee9140-c4fe-432c-8a33-79b578852446.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0NjAwNDYsIm5iZiI6MTcyMDQ1OTc0NiwicGF0aCI6Ii84MDAxMTMxOC8yODQ2ODUwNzgtMDRlZTkxNDAtYzRmZS00MzJjLThhMzMtNzliNTc4ODUyNDQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA4VDE3MjkwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1MWIwMzhiZWNmYTMxZGEyZWQxYWNkMjYwZmMyNjVlNDhmMTc5OWJlNjdjYTU4ZWExMjE1MzYxYjBhOWM2ODAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.RWF8x0VpeYchCZZDH3XHigobj5acKbB5mYXqz7b4wcQ)
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: