The best practice, theoretically and from experience, seems to be that both the mouse down and up pointer events should be outside the modal for it to count as a close.
Otherwise it’s creating issues like when selecting text in the example in the video. I’m very often, accidentally closing them trying to select text.
I agree. I’ve created an internal task for this. Can you just let me know in which browser you are testing? Because in my tests, I could replicate it easily in Chrome, but not in Firefox.