Skip to content

Commit 081ce4a

Browse files
author
Kyle Andrews
committed
Adds uid to component element
1 parent 2ba67e4 commit 081ce4a

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/snackbar-component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export class SnackbarComponent extends HTMLElement {
1919
};
2020

2121
private render() {
22+
this.dataset.uid = this.settings.uid;
23+
2224
for (let i = 0; i < this.settings.classes.length; i++) {
2325
this.classList.add(this.settings.classes[i]);
2426
}

src/toast-component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export class ToastComponent extends HTMLElement {
1313
};
1414

1515
private render() {
16+
this.dataset.uid = this.settings.uid;
17+
1618
for (let i = 0; i < this.settings.classes.length; i++) {
1719
this.classList.add(this.settings.classes[i]);
1820
}

0 commit comments

Comments
 (0)