Framework 7 Confirm alert not closing

I have created a flow that opens a Framework 7 confirm dialog. All good. Unfortunately I can’t find any way to close the alert. Neither pressing the Cancel or the OK. I call a function when pressing the OK button and that executes fine.

Any ideas on how to close the confirm dialog?

@Teodor @patrick @George

Screenshot 2021-04-19 at 17.32.18

When clicking on either of the buttons I get the following error
f7dialog.js:25 Uncaught TypeError: Cannot read property ‘then’ of undefined
at Object.onClick (f7dialog.js:25)
at HTMLSpanElement.b (0:13738)
at HTMLSpanElement.l (0:1144)

Update I managed to close it by creating a custom function and then calling it in the then blocks. I still get the error thou.

function closedialog() {
    Framework7.instance.dialog.close();
}

Following update should fix the dialog.

dmxFramework7.zip (3.8 KB)

Thanks @patrick

Working fine without any errors.

This has been fixed in Wappler 3.9.6