Open mikmiksai opened 3 years ago
Hi, I'm using Typescript in React and I'm getting this error.
const myHandleReturn = () => { console.log("test") } return ( <div className="container"> <p>Create blog</p> <input /> <Editor editorState={editorState} wrapperClassName="wrapper-class" editorClassName="editor-class" toolbarClassName="toolbar-class" onEditorStateChange={handleChangeEditor} handleReturn={myHandleReturn} toolbar={{ options: ["emoji", "link", "image"], image: { uploadEnabled: true, previewImage: true }, }} /> <button onClick={postBlog}>Post Blog</button> </div> );
same as you, any update?
@vlkpa , sorry no update
It's missing a type definition. I've created a PR for it as you can see above, but in the meantime a cheeky workaround:
// @ts-ignore handleReturn={(
Hi, I'm using Typescript in React and I'm getting this error.