Create a popup with confirm options, set the on Cancel button to just log a console message. Run your Power-Up, click Cancel. The Cancel button will not work
See:
const opts = {
confirmText: "Confirm",
message: "Does Cancel work?",
onConfirm: (tt) => console.log("click cancel"),
title: "On Cancel in Confirm Test",
type: "confirm",
mouseEvent: e,
cancelText: "Cancel",
onCancel: (tt) => console.log("DOES NOT FIRE - you will not see this"),
};
t.popup(opts);
I have not tested if this is a mouse events issue, but in every case I have this setup in all my Power-Ups it is always on a button on a form.