Version
- 3.90.0 (Happens from 3.85.0 onwards)
Description
It seems that the exact issue described here #5478 has resurfaced again. We recently updated Phaser from 3.80.1 to 3.90.0 and started having this issue happening in our app, where basically we have the Phaser instance inside a tab of a tabbed form component, and switching away to other tab (which appplies "display: none" to the original tab containing Phaser) causes this error to happen and Phaser crashes.
It seems to only happen with WebGL renderer type and Phaser.Scale.RESIZE scaling mode. I've also checked the versions and the issue starts appearing in 3.85.0 (Works fine in 3.80.1). Below is a reproduction codepen that causes this error to happen. Hiding the parent with "display; none" causes this error to be thrown:
Example Test Code
https://codepen.io/nartyjezusa/pen/jEqYyxb