Closed jwhiteside2015 closed 3 years ago
For anyone else facing this issue, the problem was that I was passing singleDatePicker the string "true", rather than the boolean true in the initialSettings attribute. The below worked:
<DateRangePicker id="startTimeQueryFilter" name="startTimeQueryFilter" initialSettings={{ singleDatePicker: true }}>
<input id="startTime" name="startTime" className="form-control" type="text"></input>
</DateRangePicker>
After setting the singleDatePicker attribute to true, I still get 2 calendars when opening the DateRangePicker:
I thought maybe I needed to pass it in in the initialSettings attribute, but that didn't work either: