We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da93992 commit 2c06691Copy full SHA for 2c06691
packages/integration-custom-element/src/index.js
@@ -36,10 +36,18 @@ function afterDOMLoad() {
36
37
function registerCustomElement(options) {
38
const { widgetDefinition, callbacks } = deepMerge({}, options);
39
- class WidgetElement extends HTMLElement {
40
- constructor() {
41
- super();
+ class HTMLCustomElement extends HTMLElement {
+ constructor(...$) {
+ const _ = super(...$);
42
+ _._init();
43
+ return _;
44
+ }
45
+ _init() {}
46
47
48
+ class WidgetElement extends HTMLCustomElement {
49
+ _init() {
50
+ super._init();
51
const customWidgetDefinition = deepMerge({}, widgetDefinition);
52
53
(async () => {
0 commit comments