azerion / phaser-input

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

Uncaught TypeError: Cannot read property 'update' of null #41 #45

Closed Tdnshah closed 7 years ago

Tdnshah commented 7 years ago

I am using phaser input and got the error on Uncaught TypeError: Cannot read property 'update' of null ' with this.placeHolder and as on the issue #41 @CFix-Ollie suggested to add a check on this.placeHolder before its called by update and also he gave a commit for the phaser-input.ts file. I faced the same problem in javascript version and the same solution worked for me too hence I have committed same changes for phaser-input.js.

i haven't committed any changes to phaser-input.min.js hence if any one using minified then it still needs to be updated.

AleBles commented 7 years ago

There was no update to the JS file yet, because I haven't build the files yet :)

I'd like to thank you for your effort, and I'll be sure to make a release asap