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?
hewi1345 β created an issue.
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
.
hewi1345 β created an issue.
Thanks, it works as expected.
hewi1345 β created an issue.
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
The Issue still exists, if you mark a field as required.
hewi1345 β created an issue.
hewi1345 β created an issue.
hewi1345 β created an issue.