# Stop events if modal window open

**URL:** <https://phaser.discourse.group/t/stop-events-if-modal-window-open/8437>\
**Category:** Phaser 3\
**Created:** [December 23, 2020, 12:28pm UTC](https://phaser.discourse.group/t/stop-events-if-modal-window-open/8437 "2020-12-23T12:28:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![il-dev](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/il-dev/32/2217_2.png) [@il-dev](https://phaser.discourse.group/u/il-dev)\
**Post date:** [December 23, 2020, 12:28pm UTC](https://phaser.discourse.group/t/stop-events-if-modal-window-open/8437/1 "2020-12-23T12:28:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [December 24, 2020, 6:12pm UTC](https://phaser.discourse.group/t/stop-events-if-modal-window-open/8437/2 "2020-12-24T18:12:46Z")

</div>

You can try

```javascript
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.
