diff --git a/src/components/utility-list/utility-list.js b/src/components/utility-list/utility-list.js index a0054af3..86d68c8f 100644 --- a/src/components/utility-list/utility-list.js +++ b/src/components/utility-list/utility-list.js @@ -23,8 +23,11 @@ class UtilityList extends Toggletip { }) this.share.addEventListener('click', (event) => { - event.preventDefault() const button = event.target.closest('a') + if (!button) return + + event.preventDefault() + const social = button.getAttribute('data-social') const url = this.getSocialUrl(button, social) if (social === 'mail') {