Framework7: close all opened pages inside a left or right side panel when opening it?

Is it possible to forse close all pages inside a side panel when opening?

the reason is that when I open a page inside a side panel and I return to the main page the side panel is closed automatically but the pages inside still opened… and when I return to the panel it is showing that page still opened…

how can I close all pages inside the side panels when opening the side panel?
thanks for any ideas

for componentUrl modals i can close them with

app.popup.close($$(’.page[data-name=“preferences”]’).parents(".popup"))

1 Like

thanks a lot for the tip!