Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

box disappears and random text appears... #49

Open
derpierre65 opened this issue May 7, 2017 · 5 comments
Open

box disappears and random text appears... #49

derpierre65 opened this issue May 7, 2017 · 5 comments

Comments

@derpierre65
Copy link

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
Copy link
Author

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

@AleBles
Copy link
Member

AleBles commented May 29, 2017

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)

@davidmkrtchyan
Copy link

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
Copy link

HEEEEY!, Ay info

@AleBles
Copy link
Member

AleBles commented Oct 13, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants