Skip to content

Selecting a single week within week-range picker leads to multiple weeks being displayed in collapsed view #972

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

Closed
nuernbergk opened this issue Aug 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nuernbergk
Copy link

Describe the bug
With a week-range picker, selecting just a single week and then hitting select leads to the collapsed DatePicker to display the current week as the end date of that range.

To Reproduce
Steps to reproduce the behavior:

  1. Create a VueDatePicker element:
<VueDatePicker
    range
    week-picker
    v-model="dateRange"
    :week-start-day="1"
    :week-numbers="{ type: 'iso' }"
    :enable-time-picker="false"
    format="ww-yyyy"
/>
  1. Select a single week:
Screenshot 01
  1. Click select.
  2. In the collapsed DatePicker, the a range of the selected week and the current week is displayed as selected
Screenshot 02

Although the v-model does not seem to be updated to reflect this.
7. When reopening the date viewer, the range seen in the preview is displayed as selected.

Note that this also happens when using the notoday property.

Expected behavior
I would expect the behaviour to be that of other partial ranges, i.e. when a single part of the range is selected, the collapsed view only shows that part of the range.

Desktop & mobile:

  • Browser: Firefox, Chrome, Safari
  • Library version: 9.0.1
@nuernbergk nuernbergk added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Aug 15, 2024
@Jasenkoo Jasenkoo removed the awaiting triage The issue is not reviewed by the maintainers label Aug 30, 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
Projects
None yet
Development

No branches or pull requests

2 participants