-
Notifications
You must be signed in to change notification settings - Fork 696
Remove 'days up to today' on DefinedRange/DateRangePicker #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @Kevin-Carlos , you can overwrite ranges using staticRanges and inputRanges properties. For example, if you don't want any inputRange, just pass an empty array to that property: <DateRangePicker
onChange={ (event) => { console.log(event) }}
ranges={[{selection:{}}]}
direction="horizontal"
inputRanges = {[]}
/> See demo here. Through these properties you can also define custom ranges, using this file as an example. |
@nerychucuy That is a solution, however, why doesn't it accept null as a value (Typescript)? Passing an empty array still renders the div of where the input ranges would be. |
@Kevin-Carlos , that's a good point. Will see if I can work on a PR to address that. |
I used this approach to remove input ranges. It (partially) works, as the container ( Though, I simply use this workaround
|
Perhaps I'm missing something here, but nothing in the list of props appears to hide this and the 'days starting today' boxes.
If there isn't this would be a nice feature to have.
The text was updated successfully, but these errors were encountered: