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
Version
React-toggle-component version : ^3.0.8
Typescript version: ^4.0.2
Expected behavior checked should be present in e.target property, similar to React.ChangeEvent<HTMLInputElement>
P.S.: Found out that styled-components is not listed as a peer-dependency and results in an error on adding this awesome library to my project. It should be mentioned in the installation instructions or add styled-components sub-dependency while installing react-toggle-component.
The text was updated successfully, but these errors were encountered:
Description
Below code results in typescript prompt
Property 'checked' does not exist on type 'EventTarget & Element'
error foronToggle
event.Version
React-toggle-component version :
^3.0.8
Typescript version:
^4.0.2
Expected behavior
checked
should be present ine.target
property, similar toReact.ChangeEvent<HTMLInputElement>
P.S.: Found out that
styled-components
is not listed as a peer-dependency and results in an error on adding this awesome library to my project. It should be mentioned in the installation instructions or addstyled-components
sub-dependency while installingreact-toggle-component
.The text was updated successfully, but these errors were encountered: