We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c89cf0 commit f9a62b9Copy full SHA for f9a62b9
core/src/components/label/label.tsx
@@ -18,6 +18,7 @@ import type { Color, StyleEventDetail } from '../../interface';
18
})
19
export class Label implements ComponentInterface {
20
private inRange = false;
21
+ private loadTimeout?: number
22
23
@Element() el!: HTMLElement;
24
@@ -56,12 +57,16 @@ export class Label implements ComponentInterface {
56
57
58
componentDidLoad() {
59
if (this.noAnimate) {
- setTimeout(() => {
60
+ this.loadTimeout = setTimeout(() => {
61
this.noAnimate = false;
62
}, 1000);
63
}
64
65
66
+ disconnectedCallback() {
67
+ clearTimeout(this.loadTimeout)
68
+ }
69
+
70
@Watch('color')
71
colorChanged() {
72
this.emitColor();
0 commit comments