I have a requirement to configure custom definedRanges, ie: today, last 7 days, current month, current year, and two special ranges
one is "Before date" (selects a range from an initial date(a constant date) to the selected date) and another is "After date"(selects a selected date to today)
I wrote the definedRanges but fell into an issue, which is related to "After date", the condition also satisfies for today and the last 7 days, so in those cases, both today/last 7 days and After date will be highlighted,
By default the selected date will be today, and it will hiighlight the ranges Today and After Date
The expected behaviour is it will only highlight Today
Subject of the issue
I have a requirement to configure custom definedRanges, ie: today, last 7 days, current month, current year, and two special ranges one is "Before date" (selects a range from an initial date(a constant date) to the selected date) and another is "After date"(selects a selected date to today) I wrote the definedRanges but fell into an issue, which is related to "After date", the condition also satisfies for today and the last 7 days, so in those cases, both today/last 7 days and After date will be highlighted,
[BUG] Bug Reproduce Steps
My definedRange below
[BUG] Expected behaviour
By default the selected date will be today, and it will hiighlight the ranges Today and After Date The expected behaviour is it will only highlight Today
Environment
Package Version: 1.4.0 React version: 18.2.0 Node version: 18.17.0 Browser: Chrome