Hi,
Thank you for the details and sorry for the trouble!
The onClose
method should do the job. There are two PopUp
-s used in the shared code and it is not clear what the order of their appearance is and how the isEdit
is managed. It is hard to understand it completely based on the shared code. What I suspect is that when the onClose
is called, there might be cases when the isEdit
is not set properly, thus this code won’t run:
if (!isEdit) {
clearTempEvent(); // Clear on cancel
}
Let me know what you find!