diff --git a/frontend/src/components/SqueakCard/index.js b/frontend/src/components/SqueakCard/index.js index 898b98ef..9a111452 100644 --- a/frontend/src/components/SqueakCard/index.js +++ b/frontend/src/components/SqueakCard/index.js @@ -39,6 +39,7 @@ const SqueakCard = React.memo(function SqueakCard(props) { } const resqueak = (e,id, resqueakId) => { + e.preventDefault(); e.stopPropagation() if(props.history.location.pathname.slice(1,5) === 'prof'){ info = { dest: "profile", id, resqueakId } @@ -47,12 +48,16 @@ const SqueakCard = React.memo(function SqueakCard(props) { } const deleteSqueak = (e,id) => { - e.stopPropagation() + e.preventDefault(); + e.stopPropagation(); dispatch(setDeleteSqueak(id)); } const toggleModal = (e, type) => { - if(e){ e.stopPropagation() } + if(e){ + e.preventDefault(); + e.stopPropagation(); + } setStyleBody(!styleBody) if(type === 'parent'){setParent(true)}else{setParent(false)} setTimeout(()=>{ setModalOpen(!modalOpen) },20) @@ -153,11 +158,12 @@ const SqueakCard = React.memo(function SqueakCard(props) { 0 -
Reply
\r\n