@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.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +3 -0
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2516,6 +2516,9 @@ function Datepicker(props) {
|
|
|
2516
2516
|
// flatpicker logic that was lost when setting allowInput to true
|
|
2517
2517
|
instance.config.onOpen = [() => instance.calendarContainer.addEventListener('focusout', onCalendarFocusOut), () => instance.calendarContainer.addEventListener('mousedown', onCalendarMouseDown)];
|
|
2518
2518
|
instance.config.onClose = [() => instance.calendarContainer.removeEventListener('focusout', onCalendarFocusOut), () => instance.calendarContainer.removeEventListener('mousedown', onCalendarMouseDown)];
|
|
2519
|
+
return () => {
|
|
2520
|
+
instance.destroy();
|
|
2521
|
+
};
|
|
2519
2522
|
}, [disallowPassedDates]);
|
|
2520
2523
|
|
|
2521
2524
|
// onChange is updated dynamically, so not to re-render the flatpicker every time it changes
|