react-datetime-picker
react-datetime-picker copied to clipboard
fix: Invalid value prop-type
- When changing any input using keyboard's up and down arrows, the following warning occurs :
Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `Input`, expected `string`.
in Input (created by YearInput/ MonthInput/ DayInput/ HourInput ...etc )
- This PR seeks to solve this by casting values passed to different inputs to String, excluding
null
orundefined
fixes issue #146