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
{{ message }}
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
FormControl is wrapped in forwardRef so its ref prop must handle a div element. However a ref prop passed to ChipInput would receive a component ref. Because ChipInput inherits FormControl's props definition and omits only onChange, TypeScript is misled about the definition of the ref prop.
I'm using a component ref in my code to call setState() from the parent component (yes I know this is bad, I'll open an issue shortly about the behavior I'm implementing 🙂).
The text was updated successfully, but these errors were encountered:
FormControl
is wrapped inforwardRef
so itsref
prop must handle a div element. However aref
prop passed toChipInput
would receive a component ref. BecauseChipInput
inheritsFormControl
's props definition and omits onlyonChange
, TypeScript is misled about the definition of theref
prop.I'm using a component ref in my code to call
setState()
from the parent component (yes I know this is bad, I'll open an issue shortly about the behavior I'm implementing 🙂).The text was updated successfully, but these errors were encountered: