How I could dispatch a custom event from '#input1' in this function?
What i tried:
export function captcha1_verified() {
$w('#input1').show();
const myEvent = new CustomEvent("myevent", {
detail: {},
bubbles: true,
cancelable: true,
composed: false,
});
$w('#input1').dispatchEvent(myEvent);
}
Error: TypeError: $w(...).dispatchEvent is not a function