jpuri / react-draft-wysiwyg

A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg
MIT License
6.41k stars 1.16k forks source link

Dropdowns are not working with latest version of React #1312

Closed akash-mahmud closed 1 year ago

akash-mahmud commented 1 year ago

I don't know why, but the drop-downs are not working in the latest version of react. if I change my index.js file code

`import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import App from "./App";

const rootElement = document.getElementById("root"); const root = createRoot(rootElement);

root.render(

);`

by

`import "./index.css"; import App from "./App"; import React from "react"; import ReactDOM from "react-dom";

ReactDOM.render(

, document.getElementById("root") );` this then dropdowns are working. But in the latest version of react, we should use createRoot. But I don't know why the react-draft-wysiwyg all drop-down like image uploads and other dropdowns are not working. Anyone have solved this problem? Thanks in advance.
akash-mahmud commented 1 year ago

It is working now. Thank you.