flippingbitss / react-daterange-picker

A react date range picker to using @material-ui. Live Demo: https://flippingbitss.github.io/react-daterange-picker/
MIT License
110 stars 212 forks source link

How to Disable the Day list #16

Open vc-akashkadia opened 3 years ago

vc-akashkadia commented 3 years ago

image

How to remove this list

rbandooni commented 3 years ago

@vc-akashkadia I don’t think this has been documented by the author, however, after looking at the source code I figured out that you would need to pass an empty array to the definedRanges prop

<DateRangePicker
definedRanges={[]}
open={dateRangeOpen}
onChange={(range) => setDateRange(range)}
  />