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
onChange on CheckBox is expecting FormEventHandler<HTMLLabelElement>. It should be expecting React.ChangeEvent<HTMLInputElement>
Type '(e: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'FormEventHandler<HTMLLabelElement>'. Types of parameters 'e' and 'event' are incompatible. Type 'FormEvent<HTMLLabelElement>' is not assignable to type 'ChangeEvent<HTMLInputElement>'. Types of property 'target' are incompatible. Type 'EventTarget' is not assignable to type 'EventTarget & HTMLInputElement'. Type 'EventTarget' is missing the following properties from type 'HTMLInputElement': accept, align, alt, autocomplete, and 339 more.
Describe the bug
onChange on CheckBox is expecting
FormEventHandler<HTMLLabelElement>
. It should be expectingReact.ChangeEvent<HTMLInputElement>
Type '(e: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type 'FormEventHandler<HTMLLabelElement>'. Types of parameters 'e' and 'event' are incompatible. Type 'FormEvent<HTMLLabelElement>' is not assignable to type 'ChangeEvent<HTMLInputElement>'. Types of property 'target' are incompatible. Type 'EventTarget' is not assignable to type 'EventTarget & HTMLInputElement'. Type 'EventTarget' is missing the following properties from type 'HTMLInputElement': accept, align, alt, autocomplete, and 339 more.
Your Example Website or App
https://codesandbox.io/p/sandbox/compassionate-mcnulty-ncf6wm
Steps to Reproduce the Bug or Issue
Expected behavior
It should be expecting
React.ChangeEvent<HTMLInputElement>
.https://nextui.org/docs/components/checkbox#checkbox-events
Screenshots or Videos
Image
Operating System Version
MacOS & Linux
Browser
Chrome
The text was updated successfully, but these errors were encountered: