react-datetime-picker icon indicating copy to clipboard operation
react-datetime-picker copied to clipboard

fix: Invalid value prop-type

Open bilobom opened this issue 3 years ago • 0 comments

  • 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 or undefined

fixes issue #146

bilobom avatar Apr 26 '21 21:04 bilobom