mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:10:00 +08:00
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:
parent
bc0eca1976
commit
ad293e510d
|
@ -268,6 +268,9 @@ export default {
|
||||||
allowHTML: true,
|
allowHTML: true,
|
||||||
interactive: true,
|
interactive: true,
|
||||||
appendTo: "parent",
|
appendTo: "parent",
|
||||||
|
onHidden: (instance) => {
|
||||||
|
instance.destroy();
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user