vue-hotel-datepicker
vue-hotel-datepicker copied to clipboard
'booking-clicked' event not fired if booking duration is one night
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:
- Create bookings consisting of at least 1 booking which lasts 1 night:
[{ checkInDate: '2021-04-15', checkOutDate: '2021-04-16', style: xxx}] - 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

Desktop (please complete the following information):
- OS: Windows 10
- Browser Firefox / Chrome
- Version FF 87 / Chrome 89.0.4389.90
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.
Did you checked on the last version?
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!