Open Anahkiasen opened 4 years ago
I also have errors in typings:
onScroll?: ((event: React.UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
onScrollCapture?: ((event: React.UIEvent<HTMLDivElement, UIEvent>) => void) | undefined;
TS2707: Generic type 'UIEvent' requires between 0 and 1 type arguments.
UIEvent has such interface:
interface UIEvent<T = Element> extends SyntheticEvent<T, NativeUIEvent> {
detail: number;
view: AbstractView;
}
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 sure