diff --git a/src/components/List/ListItem.jsx/ListItem.jsx b/src/components/List/ListItem.jsx/ListItem.jsx index 45a3245bd..c441adc15 100644 --- a/src/components/List/ListItem.jsx/ListItem.jsx +++ b/src/components/List/ListItem.jsx/ListItem.jsx @@ -31,12 +31,12 @@ function ListItem(props) { window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer')} + onClick={(e) => { + e.stopPropagation(); + window.open(`${artsDataLink}`, '_blank', 'noopener,noreferrer'); + }} data-cy="tag-entity-artsdata"> Artsdata diff --git a/src/pages/Dashboard/Organizations/Organizations.jsx b/src/pages/Dashboard/Organizations/Organizations.jsx index 4b6e0f478..64f77c5e3 100644 --- a/src/pages/Dashboard/Organizations/Organizations.jsx +++ b/src/pages/Dashboard/Organizations/Organizations.jsx @@ -257,7 +257,10 @@ function Organizations() { deleteOrganizationHandler(item?.id)} + onClick={(e) => { + e.stopPropagation(); + deleteOrganizationHandler(item?.id); + }} data-cy="delete-organization" /> ), diff --git a/src/pages/Dashboard/People/People.jsx b/src/pages/Dashboard/People/People.jsx index 296049a73..4c2297c47 100644 --- a/src/pages/Dashboard/People/People.jsx +++ b/src/pages/Dashboard/People/People.jsx @@ -244,7 +244,10 @@ function People() { data-cy="icon-delete-person" key={'delete-icon'} style={{ color: '#222732', fontSize: '24px' }} - onClick={() => deletePersonHandler(item?.id)} + onClick={(e) => { + e.stopPropagation(); + deletePersonHandler(item?.id); + }} /> ), ]} diff --git a/src/pages/Dashboard/Places/Places.jsx b/src/pages/Dashboard/Places/Places.jsx index 6a93c998c..0c62c13a4 100644 --- a/src/pages/Dashboard/Places/Places.jsx +++ b/src/pages/Dashboard/Places/Places.jsx @@ -248,7 +248,10 @@ function Places() { data-cy="icon-delete-place" key={'delete-icon'} style={{ color: '#222732', fontSize: '24px' }} - onClick={() => deletePlaceHandler(item?.id)} + onClick={(e) => { + e.stopPropagation(); + deletePlaceHandler(item?.id); + }} /> ), ]}