Skip to content

DatePicker: isRequired validation bug #822

Description

@fantua

Bug Report

  • Package version(s): 0.88

Describe the issue:

Create form with TextField and DatePicker components. TextField is controlled component (by value and onChanged), so when typing some data to him - React will re-render form.

Actual behavior:

After re-render validation is fired.

Expected behavior:

Validation should fired only when DatePicker loses focus.

Additional question:

How check is DatePicker valid when form is submitting?
Perhaps better will be also add required prop to DatePicker input element this will prevent form submitting when DatePicker is empty?

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions