diff --git a/src/taxonomy/taxonomy-card/TaxonomyCardMenu.jsx b/src/taxonomy/taxonomy-card/TaxonomyCardMenu.jsx index 32c04336df..ca10c3f7aa 100644 --- a/src/taxonomy/taxonomy-card/TaxonomyCardMenu.jsx +++ b/src/taxonomy/taxonomy-card/TaxonomyCardMenu.jsx @@ -17,7 +17,8 @@ const TaxonomyCardMenu = ({ const [menuIsOpen, setMenuIsOpen] = useState(false); const [menuTarget, setMenuTarget] = useState(null); - const onClickItem = (menuName) => { + const onClickItem = (e, menuName) => { + e.preventDefault(); setMenuIsOpen(false); onClickMenuItem(menuName); }; @@ -42,7 +43,7 @@ const TaxonomyCardMenu = ({ onClose={() => setMenuIsOpen(false)} > - onClickItem('export')}> + onClickItem(e, 'export')}> {intl.formatMessage(messages.taxonomyCardExportMenu)}