debian-mirror-gitlab/spec/frontend/__helpers__/dom_events_helper.js
2021-03-08 18:12:59 +05:30

8 lines
159 B
JavaScript

export const triggerDOMEvent = (type) => {
window.document.dispatchEvent(
new Event(type, {
bubbles: true,
cancelable: true,
}),
);
};