File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import type {CustomElement} from './custom-element.js'
99export function controller ( classObject : CustomElement ) : void {
1010 const connect = classObject . prototype . connectedCallback
1111 classObject . prototype . connectedCallback = function ( this : HTMLElement ) {
12- customElements . upgrade ( this )
1312 initializeInstance ( this , connect )
1413 }
1514 initializeClass ( classObject )
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const instances = new WeakSet<Element>()
88
99export function initializeInstance ( instance : HTMLElement , connect ?: ( this : HTMLElement ) => void ) : void {
1010 instance . toggleAttribute ( 'data-catalyst' , true )
11+ customElements . upgrade ( instance )
1112 instances . add ( instance )
1213 autoShadowRoot ( instance )
1314 initializeAttrs ( instance )
You can’t perform that action at this time.
0 commit comments