Open kimdotnet opened 7 years ago
Can confirm, default value does nothing.
It sets the hidden input element. See:
https://github.com/pushtell/react-bootstrap-date-picker/blob/master/test/core.test.jsx#L723-L749
It looks like we need to also set the text input value. PR's are appreciated!
This seems to be working on master, I can't replicate the defaultValue issue.
am trying to set a default value for Today's date(the date popup shows when first opened without values) is that could be accomplished with defaultValue property? if yes, it's not working on release: "react-bootstrap-date-picker": "^5.0.1",
does not work, confirmed.
confirmed, not working 5.1.0
<DatePicker ref={(testDate) => { testDateInput = testDate }} defaultValue={testDate} dateFormat='YYYY-MM-DD' />
But the input field, doen't display the default value