phaser-input icon indicating copy to clipboard operation
phaser-input copied to clipboard

box disappears and random text appears...

Open derpierre65 opened this issue 8 years ago • 5 comments

I dont know why, but i have different errors with phaser-input... Box disappears, random text (previously entered) appears or other text objects are overwritten. :(

Examples: https://i.gyazo.com/a7a481414841fef39eae7436deafdd98.mp4 https://i.gyazo.com/344463111ec03a1b7f6e143f05e05364.gif https://i.gyazo.com/873ae3cf7295221999906da00985053f.mp4

It is totally random and cant reproduce it and i get no javascript errors... :(

derpierre65 avatar May 07 '17 11:05 derpierre65

Its come now if i pressed any key and replaced my text with the input field text (input field completely deleted?).

derpierre65 avatar May 13 '17 10:05 derpierre65

It would appear that text from other input fields are taking, which is weird because I try to work around with that with custom id's. I do use random however, so it might be possible that id's get double.

Could you check for double input tag's with the exact same id? (Or maybe share a minimal code example to reproduce)

AleBles avatar May 29 '17 14:05 AleBles

Here the code example. this.inpPlayerName = game.add.inputField(s(WINDOW_WIDTH)/2 - s(300/2 + 8) + _w, s(WINDOW_HEIGHT)/4 + s(50) + _h, { font: '42px Arial', fill: '#212121', fontWeight: 'bold', width: 300, padding: 8, borderWidth: 1, borderColor: '#000', borderRadius: 0, placeHolder: 'Username' }); this.inpPlayerName.scale.setTo(s(1),s(1)); this.inpTablePin = game.add.inputField(s(WINDOW_WIDTH)/2-s(300/2 + 8) + _w, s(WINDOW_HEIGHT)/4 + s(120) + _h, { font: '42px Arial', fill: '#212121', fontWeight: 'bold', width: 300, padding: 8, borderWidth: 1, borderColor: '#000', borderRadius: 0, placeHolder: 'PIN', type: PhaserInput.InputType.password }); this.inpTablePin.scale.setTo(s(1),s(1));

always the inpTablePin one is disappearing at random moment, but I newer can cought that. And there is no exception when it disappears.

davidmkrtchyan avatar Sep 24 '17 15:09 davidmkrtchyan

HEEEEY!, Ay info

davidmkrtchyan avatar Oct 02 '17 20:10 davidmkrtchyan

Sorry for the slow responses, which Phaser version are you on?

Also, this library adds some html5 input elements to the document tree, when the ingame in put field is gone, is the elements still available in the tree?

AleBles avatar Oct 13 '17 09:10 AleBles