Even if I destroy the dialog after closing it, next time I press the Delete button, another one is created.
$f7.dialog
.create({
title: translate("DeleteAccount"),
text: translate("DeleteAccountInfo"),
on: {
dialogClosed: function (dialog) {
console.log("closed");
dialog.destroy();
},
dialogBeforeDestroy() {
console.log("destroy");
},
},
buttons: [
{ text: "Cancel" },
{
text: "Delete",
color: "red",
onClick() {
deleteMe()
.then((res) => {
if (!res.status) {
app.ShowPopup(res.message, "Short,Bottom");
return;
}
onMenuSelect(0);
})
.catch(onFetchError);
}
}
]
})
.open(true);
No problem on first boot. Then when I go back to the beginning with the navigate, I press the Delete key and the dialog appears again.
If I reload the page with navigate 3 times. Every time I press the Delete button, a dialog pops up again.