debian-mirror-gitlab/spec/frontend/helpers/dom_events_helper.js
2020-11-24 15:15:51 +05:30

8 lines
157 B
JavaScript

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