Skip to content

trigger change event for date inputs to fix plage ouverture recurrence creation bug

Vincent Agnano requested to merge fix/plage-ouverture-recurrence-until into master

Created by: adipasquale

cf https://trello.com/c/vXYTvvDg/1009-creation-de-plage-ouverture-jour-de-fin-pas-pris-en-compte

the bug was introduced when we started using the jQuery datetimepicker instead of the native HTML5 date input. The problem was that the change event was not triggered anymore, and thus the associated stimulus action to refresh the recurrence input was not being refreshed correctly.

I've added a somewhat hacky fix to always trigger this change event for such inputs. We may do better when we remove stimulus

Merge request reports