Open derpierre65 opened 7 years ago
Its come now if i pressed any key and replaced my text with the input field text (input field completely deleted?).
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)
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.
HEEEEY!, Ay info
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?
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... :(