Skip to content

[Bug]: DatePicker performs validation on load, despite validateOnLoad = false. #25318

@voyDk

Description

@voyDk

Library

React / v8 (@fluentui/react)

System Info

System:
    OS: Windows 10 10.0.19042
    CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
    Memory: 14.07 GB / 63.37 GB
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (106.0.1370.37)
    Internet Explorer: 11.0.19041.1566

Are you reporting Accessibility issue?

No response

Reproduction

https://codepen.io/vger/pen/NWMZwWb

Bug Description

Actual Behavior

On initial render the DatePicker is shown and validation is performed, despite validateOnLoad = false for textField.

Expected Behavior

I expect it not to perform the validation on load, but after either filling out the input field or on blur.

Logs

No response

Requested priority

Normal

Products/sites affected

No response

Are you willing to submit a PR to fix?

yes

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions