这是indexloc提供的服务,不要输入任何密码
Skip to content

Date validation #6

@xcash

Description

@xcash

The new Chrome is more aggressive on type="date" input fields.

When using formtools the date validation works by the formtools' rules but the browser presents a calendar widget to the user that thus selects a wrong formatted date.

This is not easy to deal with. We must choose if we want to use the browser native field enhancement or block it and use ours.
A simple workaround is using a normal text type but the formtools date validation doesn't kick in and we must validate it manually (via data-ft-regex).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions