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
I have searched the issues of this repository and believe that this is not a duplicate.
Describe the bug
when using the slider an settting the state from the onChange event, I get a problem.
The type is supposed to be : (event: ChangeEvent<HTMLElement>) => void but the problem with that is that I cannot access the event.target.valueProperty 'value' does not exist on type 'EventTarget & HTMLElement'..
Using event: React.ChangeEvent I can access the event.target.value but not I cannot compile it, it gives this type error Type '(event: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type '(event: ChangeEvent<HTMLElement>) => void'.
Do you guys need to update the type or is there an another way to get the value ?
Describe the bug
when using the slider an settting the state from the onChange event, I get a problem.
The type is supposed to be :
(event: ChangeEvent<HTMLElement>) => void
but the problem with that is that I cannot access theevent.target.value
Property 'value' does not exist on type 'EventTarget & HTMLElement'.
.Using event: React.ChangeEvent I can access the
event.target.value
but not I cannot compile it, it gives this type errorType '(event: React.ChangeEvent<HTMLInputElement>) => void' is not assignable to type '(event: ChangeEvent<HTMLElement>) => void'.
Do you guys need to update the type or is there an another way to get the value ?
My code:
The text was updated successfully, but these errors were encountered: