Skip to content

Commit e25f0e4

Browse files
committed
Upgrade all custom element decdants in connectedCallback
1 parent 42f7a61 commit e25f0e4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type {CustomElement} from './custom-element.js'
99
export function controller(classObject: CustomElement): void {
1010
const connect = classObject.prototype.connectedCallback
1111
classObject.prototype.connectedCallback = function (this: HTMLElement) {
12+
customElements.upgrade(this)
1213
initializeInstance(this, connect)
1314
}
1415
initializeClass(classObject)

0 commit comments

Comments
 (0)