Skip to content

inputmode numeric on IntegerField by default #776

@laureanorp

Description

@laureanorp

Suggestion, not issue

Hello everyone!

Context: When using 'inputmode': 'numeric' in render_kw of a field, that field will pop up a special, number-only keyboard on smartphones. It doesn't affect desktop websites as far as I know.

image

It came to my attention that the class IntegerField doesn't include the render_kw 'inputmode': 'numeric' by default, but it has to be added manually. Is this a design decision? I think it would be an accesbility/usability improvement if this was included by default.

Thanks in advance for your response.

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