Skip to content

Commit

Permalink
add el to detail
Browse files Browse the repository at this point in the history
  • Loading branch information
micaww committed Feb 14, 2024
1 parent ae19ca4 commit 167d5d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ class Component extends WebComponent {
}
}

this.dispatchEvent(new CustomEvent(`preComponentInitialized`, {bubbles: true, composed: true}));
this.dispatchEvent(new CustomEvent(`preComponentInitialized`, {detail: {el: this}, bubbles: true, composed: true}));

this.domPatcher = new DOMPatcher(this.state, this._render.bind(this), {
updateMode: this.getConfig(`updateSync`) ? `sync` : `async`,
Expand Down

0 comments on commit 167d5d3

Please sign in to comment.