In the following, I want a listen for an event to reopen a sheet, but the router events don’t seem to be firing. Should this work, or is there another solution?
f7.sheet.close(".demo-sheet-breakpoints");
f7.view.current.router.navigate(`${pageid}/`, {
openIn: "popup",
on: {
popupClose: function () {
console.log("popupClose");
// Open the sheet when the popup is closed
f7.sheet.open(".demo-sheet-breakpoints");
}
}
});
}
You should probably try to listen for pageInit or popupOpen event instead, look in these event listeners for the popup element, and add listener for its ‘popupClose’ event