Skip to content
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

DateRange: Unable to select larger range after making a selection & auto end-range decrement #1892

Open
AyushAgrawal-A2 opened this issue Apr 15, 2024 · 0 comments · May be fixed by #1893
Open
Labels
bug Something isn't working to-review Evidence team to review

Comments

@AyushAgrawal-A2
Copy link
Contributor

AyushAgrawal-A2 commented Apr 15, 2024

Steps To Reproduce

Using following query in example-project
image

Environment

  • Node version (node -v): 18.20.2
  • npm version (npm -v): 10.5.0
  • OS: Windows 11 x64
  • Browser: Chrome 123.0.6312.122
  • Database: example-project's needful_things.orders

Expected Behavior

  • End range date should not auto decrement
  • I should to able to select a larger date range, irrespective of previous selection

Actual Behaviour

  • End range auto decrements (this is locale specific, error in dateToYYYYMMDD function for some locale, mine is UTC+5:30)
Evidence.-.Google.Chrome.2024-04-15.23-25-03.mp4
  • Only the selected range is active, unable to select outside of previous selection (screencast after fixing date autodecrement issue)
Evidence.-.Google.Chrome.2024-04-15.23-26-37.mp4

Workarounds

Use a secondary query that is not filtered by the daterange, to drive the daterange (same as #1875 )

@AyushAgrawal-A2 AyushAgrawal-A2 added bug Something isn't working to-review Evidence team to review labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to-review Evidence team to review
Projects
None yet
1 participant