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

Date picker (Range) on Vue and React does not behave as expected. #2981

Closed
2 tasks done
lee-chase opened this issue Jun 8, 2019 · 1 comment
Closed
2 tasks done

Comments

@lee-chase
Copy link
Member

What package(s) are you using?

  • @carbon/vue
  • carbon-components-react

Detailed description

Describe in detail the issue you're having.

NOTE: This is a flatpickr range plugin issue.
flatpickr/flatpickr#1575

Copied from carbon-design-system/carbon-components-vue#434
We found the following very confusing behavior in the date range picker:
1.) Click the startDate and select a range 1.6. to 3.6.
2.) Calendar closes. Click the startDate again and click 4.6.
Expected: new range 1.6. to 4.6.
Actual: 3.6. to 4.6.
3.) Repeat the test by clicking 5.6. Now the new range is 3.6. to 5.6. (as expected!)
4.) Then open startDate again and select 2.6.
Expected: 2.6. to 5.6.
Actual: 2.6. to 3.6.

This inconsistent behavior is really very confusing for the user!

Date Picker in range mode

Chrome 74

10.3.0 carbon-components-react
2.4.0 @carbon/vue

Steps to reproduce the issue

See description above

NOTE: Issue can also be observed here on flatpickr range plugin
https://flatpickr.js.org/plugins/#rangeplugin-beta

@asudoh
Copy link
Contributor

asudoh commented Apr 5, 2020

Let's merge this discussion to #5572. Thanks @lee-chase for reporting!

@asudoh asudoh closed this as completed Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants