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
When I try to use the ContentEditable component with Typescript 3.7.5 I get the following error:
No overload matches this call.
Overload 1 of 2, '(props: Readonly<Props>): ContentEditable', gave the following error.
Property 'onChange' is missing in type '{ innerRef: RefObject<HTMLSpanElement>; className: string; tagName: string; html: string; }' but required in type 'Pick<Readonly<Props> & Readonly<{ children?: ReactNode; }>, "ref" | "html" | "style" | "title" | "className" | "children" | "defaultChecked" | ... 251 more ... | "key">'.
Overload 2 of 2, '(props: Props, context?: any): ContentEditable', gave the following error.
Property 'onChange' is missing in type '{ innerRef: RefObject<HTMLSpanElement>; className: string; tagName: string; html: string; }' but required in type 'Pick<Readonly<Props> & Readonly<{ children?: ReactNode; }>, "ref" | "html" | "style" | "title" | "className" | "children" | "defaultChecked" | ... 251 more ... | "key">'. TS2769
Whether I specify onChange doesn't seem to do anything, this seems to be an issue with the use of Modify and DivProps where TS is basically saying you can't add an onChange to a div or something, not sure
The text was updated successfully, but these errors were encountered:
When I try to use the ContentEditable component with Typescript 3.7.5 I get the following error:
Whether I specify
onChange
doesn't seem to do anything, this seems to be an issue with the use ofModify
andDivProps
where TS is basically saying you can't add anonChange
to a div or something, not sureThe text was updated successfully, but these errors were encountered: