Bug: Mouse Clicks not responding after set Input UI, then to Game

I am facing the same problem in a top-down shooter I am making, with the “Set input mode game only” enabled, I have to click multiple times for the character to shoot once, and this is in 4.21.2.