rexrainbow / phaser3-rex-notes

Notes of phaser3 engine
MIT License
1.2k stars 260 forks source link

Modal on open doesn’t fire #341

Closed 343dev closed 1 year ago

343dev commented 1 year ago

Hi there.

Since v1.1.79 the “open” event doesn’t fire when modal duration.in is set to zero.

https://codepen.io/343dev/pen/BaOdpXm

rexrainbow commented 1 year ago

Thanks, this issue has been fixed in latest commit.

The root cause is, modal behavior opens dialog game object too early before registering 'open' event. Now the modal will open dialog next tick after creating this modal behavior.