debian-mirror-gitlab/spec/frontend/__helpers__/dom_events_helper.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
159 B
JavaScript
Raw Normal View History

2021-03-08 18:12:59 +05:30
export const triggerDOMEvent = (type) => {
2020-04-22 19:07:51 +05:30
window.document.dispatchEvent(
new Event(type, {
bubbles: true,
cancelable: true,
}),
);
};