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

"v-date-end-day" class is before "v-date-start-day" in DateRange #30

Open
nirazul opened this issue Jul 31, 2018 · 4 comments
Open

"v-date-end-day" class is before "v-date-start-day" in DateRange #30

nirazul opened this issue Jul 31, 2018 · 4 comments
Labels

Comments

@nirazul
Copy link

nirazul commented Jul 31, 2018

First of all, thank you for this nice component. It works really well out of the box!

I've found a weird behaviour and I'm not sure if it's wanted or not:

When I select one date and then the other one (which is before the startDate), the class for the startDate is on the later date and the class for the endDate is on the earlier date.

Example:

  • I click on 31. July 2018
  • I click on 1. July 2018

.v-date-start-day is on 31. July
.v-date-end-day is on 1. July

Is there a way to always have a class on the earlier date and one on the later date?

@nirazul
Copy link
Author

nirazul commented Jul 31, 2018

Ok, I'm not able to reproduce it now... Maybe it has something to do with hooking it to a model... I'll investigate and reopen if I see it again...

@nirazul nirazul closed this as completed Jul 31, 2018
@ParadeTo
Copy link
Owner

ParadeTo commented Aug 1, 2018

😆

@nirazul
Copy link
Author

nirazul commented Aug 1, 2018

@ParadeTo
Ah, it's also in your example: DateRange

And I can reproduce it locally, as soon as you don't have a property like v-model the dates get confused.

devtools_-paradeto_com_vue-date-range

@nirazul nirazul reopened this Aug 1, 2018
@ParadeTo ParadeTo added the bug label Aug 1, 2018
@ParadeTo
Copy link
Owner

can you help to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants