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

'booking-clicked' event not fired if booking duration is one night #276

Closed Merton closed 1 year ago

Merton commented 3 years ago

Describe the bug If you have a booking which lasts over 2 days, and 1 night. Ie, start date: 2021-04-15 and end date 2021-04-16, the booking-clicked event is not fired.

To Reproduce Steps to reproduce the behavior:

  1. Create bookings consisting of at least 1 booking which lasts 1 night: [{ checkInDate: '2021-04-15', checkOutDate: '2021-04-16', style: xxx}]
  2. Try to click either the 15th, or the 16th. Clicking the 15th does not trigger any event, and clicking the 16th triggers a new check in selection

Expected behavior At least, clicking the check in date (15th) to trigger booking clicked event. Ideally if 16th is clicked, both events (check in changed and booking clicked) are triggered

Screenshots image

Desktop (please complete the following information):

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

matiasperrone commented 3 years ago

Did you checked on the last version?

matiasperrone commented 1 year ago

Hi @Merton!! long time...

Sorry for the late response. The "booking-clicked" event, only works with bookings, if the bookings prop was provided, then it shows those dates differently, and if the user click on one of those the event fires.

Best!