I am trying to set the formatPlaceHolder prop on a DatePicker component using the CustomFormatPlaceHolder object per the docs at:
https://www.telerik.com/kendo-react-ui/components/dateinputs/datepicker/placeholders/
This does the correct thing in the rendered component, however, setting the formatPlaceHolder with an object causes my tests to fail the prop types check for this component with message:
Warning: Failed prop type: Invalid prop `formatPlaceholder` of value `[object Object]` supplied to `DatePicker`, expected one of ["wide","narrow","short","formatPattern",null].
Is there something I am doing wrong here?
Here is my component:
<DatePickerid="dateOfOccurence"name="dateOfOccurence"format="MM/dd/yyyy"formatPlaceholder={{ month: 'mm', day: 'dd', year: 'yyyy' }}/>