renderer/utils/helpers.js
/**
 * Trigger a submit event
 * @param {HTMLElement} element
 */
Trigger a submit event
@param {HTMLElement} element
Trigger a submit event @param { HTMLElement } element
function submit(element) {
    const event = document.createEvent('HTMLEvents');
    event.initEvent('submit', true, false);
    element.dispatchEvent(event);
}
function submit ( element ) { const event = document . createEvent ( 'HTMLEvents' ) ; event . initEvent ( 'submit' , true , false ) ; element . dispatchEvent ( event ) ; }
Trigger a submit event
 @param {HTMLElement} element
Trigger a submit event @param { HTMLElement } element