Exit buttons in team member profile pop-ups not working

For some reason, the “X” (exit) buttons in the team member profile pop-ups are no longer working in this widget. Hoping someone can fix this soon!

Hey @Brady_Gilliam :waving_hand:

Oh, I’m sorry for the trouble! We’ll investigate the matter ASAP – the case is already on the dev’s table :saluting_face:

In the meantime, could you please share if the error appears only on this page which I found in your account, or are there more pages affected by the issue? It would be really helpful if you provided others!

Getting back with the good news!

The devs noticed that your website has some kind of event listener that interferes with the X button performance. To fix it up, we added our own event listener into the Custom JS section of your Team Showcase installed on this page:

window.addEventListener(
	'click',
	(event) => {
		if (event.target?.closest('[class*="Popup__PopupCloseInside-sc"]')) {
			document.body.querySelector('[class*="Popup__PopupInner-sc"]')?.click();
		}
	},
	true
);

With the help of this script, we managed to make the buttons work again :tada:

Please let me know how it’s going now on your side.

2 Likes