fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DatePicker: Default value should be undefined, not new Date

Open abettadapur opened this issue 8 years ago • 2 comments

Bug Report

  • Package version(s): latest

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes

Requested priority: Normal

Describe the issue:

DatePicker sets the default selectedDate to new Date() if no value is passed via props. Then, if the consumer passes the current date (new Date()) in props, the text box does not update because the selectedDate is the same as the value passed in props. This is unexpected, the default selectedDate should be undefined

abettadapur avatar Dec 13 '17 21:12 abettadapur

@abettadapur Have you had any information about this issue? I have another issue (#3683) that I believe it will be fixed as well if this bug was fix.

nguyentoantuit avatar Jan 10 '18 05:01 nguyentoantuit

@nguyentoantuit This is the same issue that led me to submit the PR, so it should be fixed

abettadapur avatar Jan 10 '18 19:01 abettadapur