Skip to content
Snippets Groups Projects
Verified Commit 23ccf72f authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

feat: customevents are composed and should bubble across shadowRoot

parent 1f1207df
No related branches found
No related tags found
No related merge requests found
......@@ -33,9 +33,11 @@ function fireEvent(element, type) {
return;
}
// https://developer.mozilla.org/en-US/docs/Web/API/Event/Event
let event = new Event(validateString(type), {
bubbles: true,
cancelable: true,
composed: true,
});
element.dispatchEvent(event);
......@@ -72,6 +74,7 @@ function fireCustomEvent(element, type, detail) {
let event = new CustomEvent(validateString(type), {
bubbles: true,
cancelable: true,
composed: true,
detail,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment