material-ui-pickers icon indicating copy to clipboard operation
material-ui-pickers copied to clipboard

minDate prop set to new Date() shows error if today is selected

Open asaivishal opened this issue 8 years ago • 1 comments

Environment

Tech Version
material-ui-pickers 1.0.0-rc.13
material-ui 1.5.1
React 16.3.2
Browser Chrome
Platform MacOS High Sierra
Peer library moment

Steps to reproduce

  1. Open this project: https://codesandbox.io/s/mok3701mp9

Expected behavior

Error message should only appear if previous date is selected

Actual behavior

Error message appears if today's date is selected

Live example

CodeSandbox URI: https://codesandbox.io/s/mok3701mp9

asaivishal avatar Aug 21 '18 00:08 asaivishal

You should pass the value to make it works properly https://codesandbox.io/s/3vx4xm4lp1

dmtrKovalenko avatar Aug 23 '18 07:08 dmtrKovalenko