Flensburg
Account created on 22 February 2017, almost 8 years ago
#

Recent comments

πŸ‡©πŸ‡ͺGermany hewi1345 Flensburg

I created two new branches.
The first one contains changes that fix the issue where the calendar is hidden when the start date is in a past month.

As a workaround, I added a month selection because otherwise, the bookable days were not displayed on page load.
If someone can solve it without the selection, feel free to change it. However, it would be good to keep my workaround as an option.

The second branch is identical functionwise, but now it no longer uses jQuery, only pure JavaScript.
I did this because Drupal Core is trying to deprecate jQuery.
https://www.drupal.org/project/drupal/issues/3052002 🌱 [meta] Replace JQuery with vanilla Javascript in core Active

@rfmarcelino
Could you reopen the issue and change the status to Needs review?

πŸ‡©πŸ‡ͺGermany hewi1345 Flensburg

hewi1345 β†’ created an issue.

πŸ‡©πŸ‡ͺGermany hewi1345 Flensburg

I can confirm luca_cracco’s comment. If the start date is in the previous month, the daysData variable remains empty.
Consequently, the condition if (!daysData || daysData.length === 0) is triggered, resulting in the display of the no-slots-message.

πŸ‡©πŸ‡ͺGermany hewi1345 Flensburg

Thanks, it works as expected.

πŸ‡©πŸ‡ͺGermany hewi1345 Flensburg

Thanks, the error seems related to Use conditional logic to show/hide webform_booking fields bring to PluginNotFoundException πŸ› Use conditional logic to show/hide webform_booking fields bring to PluginNotFoundException Fixed

πŸ‡©πŸ‡ͺGermany hewi1345 Flensburg

The Issue still exists, if you mark a field as required.

Production build 0.71.5 2024