Prevent outside click whilte select drop down active

Hi, when opening a select option list the native select menu opens up on iOS (Android adds backdrop and is a non issue). But the outside is “tappable”. So when the user hits anything outside of the selection list accidentally or by will, anything that’s tapped on that is a link, gets fired. And the user is sent away from the page I want to keep them on. Can this behavior be prevented? So any clicks outside of the native selection list is simply ignored?