When scrolling on my MacBook, I accidentally clicked on the Flag call-to-action, and it spooked me for a second. “Nooo!” I thought, “I didn’t want to flag this, the post is a good one!” It took me a couple of seconds to realize I could just close the modal dialog, as I was looking for some way to cancel and not just close. Yeah, I’m kind of dumb that way despite being a frontend developer for the past 30 years or so (gods, I’m old!).
So my suggestion, add some sort of more explicit way to dismiss the flag dialog. It may seem redundant, but a “cancel” button next to the “submit” seems logical to me.