From e149a5bf27ae44d7c784c5f46214a137cfd7b689 Mon Sep 17 00:00:00 2001 From: Daniel Tsanev Date: Sat, 9 Dec 2023 13:44:48 +0200 Subject: [PATCH] fix(forms): rename variables --- projects/angular/clarity.api.md | 2 +- projects/angular/src/forms/common/wrapped-control.spec.ts | 6 +++--- projects/angular/src/forms/common/wrapped-control.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/angular/clarity.api.md b/projects/angular/clarity.api.md index dbf65d2219..9a09870512 100644 --- a/projects/angular/clarity.api.md +++ b/projects/angular/clarity.api.md @@ -65,7 +65,7 @@ export class CdsIconCustomTag { } // @public (undocumented) -export enum CHANGES_KEYS { +export enum CHANGE_KEYS { // (undocumented) FORM = "form", // (undocumented) diff --git a/projects/angular/src/forms/common/wrapped-control.spec.ts b/projects/angular/src/forms/common/wrapped-control.spec.ts index 9ff5996289..1f9ee134b8 100644 --- a/projects/angular/src/forms/common/wrapped-control.spec.ts +++ b/projects/angular/src/forms/common/wrapped-control.spec.ts @@ -219,7 +219,7 @@ class WithDynamicFormControl { - + Successful! implements OnInit, OnD if (changes) { changes.forEachChangedItem(change => { if ( - (change.key === CHANGES_KEYS.FORM || change.key === CHANGES_KEYS.MODEL) && + (change.key === CHANGE_KEYS.FORM || change.key === CHANGE_KEYS.MODEL) && change.currentValue !== change.previousValue ) { this.triggerValidation();