Stop events if modal window open

Hello. I have Phaser 3 game (not in iframe) and when i fire html modal window all clicks on this window goes to the game. What is the best way to pause and resume this events? It only comes to mind to stop the scene and then start it. Thank you

You can try

this.input.manager.enabled = false;

Or event.stopPropagation() from the modal window.

I don’t really understand how the clicks would be reaching the game canvas, though.