Skip to content

Commit 80cccb7

Browse files
authored
Merge pull request #54 from github/feat-advertise-catalyst-controllers-with-data-catalyst
feat: advertise Catalyst controllers with `data-catalyst`
2 parents b21d40b + 20645b7 commit 80cccb7

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
@@ -14,6 +14,7 @@ interface CustomElement {
1414
*/
1515
export function controller(classObject: CustomElement): void {
1616
wrap(classObject.prototype, 'connectedCallback', function (this: HTMLElement) {
17+
this.toggleAttribute('data-catalyst', true)
1718
bind(this)
1819
})
1920
register(classObject)

0 commit comments

Comments
 (0)