azerion / phaser-input

Adds input boxes to Phaser like CanvasInput, but also works for WebGL and Mobile, made for Phaser only.
MIT License
203 stars 64 forks source link

Possible problem when calling destroy(true, false) on group containing InputText #10

Closed CreativeSparkStudios closed 8 years ago

CreativeSparkStudios commented 8 years ago

I get the following error when I destroy the phaser group containing an input textfield by calling group.destroy(true, false);

_phaser-input.min.js:10 Uncaught TypeError: Cannot read property 'device' of null c.endFocus @ phaser-input.min.js:10 c.setText @ phaser-input.min.js:10 c.resetText @ phaser-input.min.js:10 c.checkDown @ phaser-input.min.js:10 execute @ phaser.min.js:11 dispatch @ phaser.min.js:11 start @ phaser.min.js:12 onMouseDown @ phaser.min.js:12 onMouseDown @ phaser.min.js:12