diff --git a/src/controller.ts b/src/controller.ts index 3f66eecb..5ff6293c 100644 --- a/src/controller.ts +++ b/src/controller.ts @@ -14,6 +14,7 @@ interface CustomElement { */ export function controller(classObject: CustomElement): void { wrap(classObject.prototype, 'connectedCallback', function (this: HTMLElement) { + this.toggleAttribute('data-catalyst', true) bind(this) }) register(classObject)