Skip to content

'0' has no input count limit if using InputType.number #75

@Cerlancism

Description

@Cerlancism

I need an input validation for numbers only from 0 to 10

const field = this.add.inputField(0, 0, {
            type: PhaserInput.InputType.number,
            max: "10",
            min: "0",
        })

I observed that 0 can be repeated on the field. Is it possible to restrict to a single '0'? Or are there any on input event and is focused boolean so I can custom validate on the fly as walkaround by using directly from phaser input events?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions