diff --git a/src/App.js b/src/App.js index eaada8e..73af7d1 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ import './App.css'; import React, {useState,useEffect,useRef} from 'react'; -import ReactWindow from 'reactjs-windows' +//import ReactWindow from 'reactjs-windows' import 'reactjs-windows/dist/index.css' function Col(p) { @@ -135,7 +135,7 @@ function useOutsideAlerter(ref,setEdit) { // Unbind the event listener on clean up document.removeEventListener("mousedown", handleClickOutside); }; - }, [ref]); + }, [ref,setEdit]); }