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 b05d51a commit a96ef13Copy full SHA for a96ef13
src/lib/core/base/base2.ts
@@ -20,6 +20,7 @@ export abstract class BaseDirective2 implements OnChanges, OnDestroy {
20
/** The most recently used styles for the builder */
21
protected mru: StyleDefinition = {};
22
protected destroySubject: Subject<void> = new Subject();
23
+ protected currentValue: any;
24
25
/** Access to host element's parent DOM node */
26
protected get parentElement(): HTMLElement | null {
@@ -148,6 +149,9 @@ export abstract class BaseDirective2 implements OnChanges, OnDestroy {
148
149
}
150
151
protected updateWithValue(input: string) {
- this.addStyles(input);
152
+ if (this.currentValue !== input) {
153
+ this.addStyles(input);
154
+ this.currentValue = input;
155
+ }
156
157
0 commit comments