Closed jesperjohansson closed 6 years ago
Solved it like this:
const input = this.game.make.inputField(x, y, {
type: PhaserInput.InputType.password,
});
input.domElement.element.setAttribute('inputmode', 'numeric');
input.domElement.element.setAttribute('pattern', '[0-9]*');
input.domElement.element.type = 'number';
Is there a way to show the numeric keyboard on mobile devices but keep the type "password"? Or somehow only show the numbers as "*"?