event page scroll top
Karian Før karian.for@gmail.com
Thu, 02 Jul 2020 19:53:29 +0200
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
app/src/pages/Event.js
→
app/src/pages/Event.js
@@ -35,6 +35,10 @@ updateEvent,
} = useEvent(); useEffect(() => { + window.scrollTo(0, 0); + }, []); + + useEffect(() => { if (!detailsOpen) setIsEditing(false); }, [detailsOpen]); // eslint-disable-line react-hooks/exhaustive-deps