sharetribe / ftw-hourly

Flex template for Web: time-based booking processes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calendar entries are lost after changing month

ugened47 opened this issue · comments

Calendar entries are lost after the calendar inside FieldDateAndTimeInput is closed and it's unavailable to select date/time.

To Reproduce Steps to reproduce the behavior:

  1. Go to the listing page
  2. Click on calendar input click next month arrow and select date.
  3. Calendar is closed and no time entries are available
  4. Open calendar again and no dates are available

Expected behavior
Calendar works correctly

Screenshots If applicable, add screenshots to help explain your problem.
Screenshot 2021-08-23 at 20 20 16

Screenshot 2021-08-23 at 20 20 51

Screenshot 2021-08-23 at 20 21 01

Additional context
Only happens when changing the month. The currentMonth is reset before it's actually used inside onBookingStartDateChanged callback.

When removed onClose prop introduced in #158 everything started working correctly.

Thanks for the report and sorry, our focus has been a bit elsewhere - so, we missed this earlier.

Bug fix is now merged to master.