vue-hotel-datepicker icon indicating copy to clipboard operation
vue-hotel-datepicker copied to clipboard

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

Open Merton opened this issue 4 years ago • 2 comments
trafficstars

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):

  • OS: Windows 10
  • Browser Firefox / Chrome
  • Version FF 87 / Chrome 89.0.4389.90

Merton avatar Mar 29 '21 14:03 Merton

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.

stale[bot] avatar Jun 22 '21 17:06 stale[bot]

Did you checked on the last version?

matiasperrone avatar Jul 12 '21 19:07 matiasperrone

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!

matiasperrone avatar Dec 29 '22 13:12 matiasperrone