@bpmn-io/form-js-viewer 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2496,6 +2496,9 @@ function Datepicker(props) {
2496
2496
  // flatpicker logic that was lost when setting allowInput to true
2497
2497
  instance.config.onOpen = [() => instance.calendarContainer.addEventListener('focusout', onCalendarFocusOut), () => instance.calendarContainer.addEventListener('mousedown', onCalendarMouseDown)];
2498
2498
  instance.config.onClose = [() => instance.calendarContainer.removeEventListener('focusout', onCalendarFocusOut), () => instance.calendarContainer.removeEventListener('mousedown', onCalendarMouseDown)];
2499
+ return () => {
2500
+ instance.destroy();
2501
+ };
2499
2502
  }, [disallowPassedDates]);
2500
2503
 
2501
2504
  // onChange is updated dynamically, so not to re-render the flatpicker every time it changes