all repos — caroster @ 1a8f0e8d5d4f697c741c56508e728fa5ece3ca91

[Octree] Group carpool to your event https://caroster.io

event page scroll top
Karian Før karian.for@gmail.com
Thu, 02 Jul 2020 19:53:29 +0200
commit

1a8f0e8d5d4f697c741c56508e728fa5ece3ca91

parent

2790bf2402c20fa496af4c38a993c6fde96b7c29

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M app/src/pages/Event.jsapp/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