after a click on the popup close X, the map onclick events are fired. this is not the expected behaviour, since the X is within the popup where a click does not fire the onclick events.
Is there a workaround to check inside onclick event callback if the click was on the close button?