ZestfulNation / vue-hotel-datepicker

A VueJS v2 responsive date range picker. Displays the number of nights selected and allow several useful options like custom check-in/check-out rules, localization support and more.
https://zestfulnation.github.io/vue-hotel-datepicker/
MIT License
840 stars 220 forks source link

Selected and disabled date are not showing up in v2.x #223

Closed guillaumebriday closed 4 years ago

guillaumebriday commented 4 years ago

Description

When dates are selected but in a disabled range there are just disabled for the user.

For instance,

When there is no disabled dates: Screenshot 2020-09-08 at 18 03 33

When only saturdays are enabled: Screenshot 2020-09-08 at 18 03 46

Code sample

I think it's related to this computed method:

https://github.com/krystalcampioni/vue-hotel-datepicker/blob/main/src/components/Day.vue#L121

Will open to simplify this method.

Steps to Reproduce

Expected behavior: [What you expected to happen]

We should be able to see selected days in disabled range.

Actual behavior: [What actually happened]

We can't.

Datepicker Version

Latest.

matiasperrone commented 4 years ago

Are you using the v4 beta version?

guillaumebriday commented 4 years ago

Nope still 2.7.8 because can't upgrade to 3.x because of this https://github.com/krystalcampioni/vue-hotel-datepicker/issues/206 and 4 is in beta

matiasperrone commented 4 years ago

I'll try today to update the 3.x version, but thw 2.x it is old, and very deprecated, tons of security issues.

guillaumebriday commented 4 years ago

Ok I will try to upgrade to the latest stable soon!

superbiche commented 4 years ago

Closing to focus efforts towards v4.0