Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/common/color-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ const Self = class ColorElement extends NudeElement {
}
}

// CRITICAL: Initialize the class BEFORE defining the custom element.
// This ensures mixins are applied and composed functions are created
// on the prototype before the browser caches references to lifecycle callbacks.
// Without this, the browser would register the unmodified inherited callbacks
// from parent classes instead of the composed versions created by mixins.
this.init();

customElements.define(this.tagName, this);
}
};
Expand Down