FIX: destroys instance when hiding date popover (#16623)

This fix attempts to fix an issue where the preview was not updated after changing timezone. Changing time would work as it would recreate the date DOM element and as a result, reset the popper.
This commit is contained in:
Joffrey JAFFEUX 2022-05-03 23:47:25 +02:00 committed by GitHub
parent bc0eca1976
commit ad293e510d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,6 +268,9 @@ export default {
allowHTML: true,
interactive: true,
appendTo: "parent",
onHidden: (instance) => {
instance.destroy();
},
});
},