Skip to content

Commit

Permalink
fix(forms): rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsanevmw committed Dec 9, 2023
1 parent 8903e72 commit ea53d08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion projects/angular/clarity.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CdsIconCustomTag {
}

// @public (undocumented)
export enum CHANGES_KEYS {
export enum CHANGE_KEYS {
// (undocumented)
FORM = "form",
// (undocumented)
Expand Down
4 changes: 2 additions & 2 deletions projects/angular/src/forms/common/wrapped-control.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ class WithDynamicFormControl {
`,
})
class WithDynamicNgControl {
object = {};
form = {};
addControl() {
this.object['control'] = 'TEST';
this.form['control'] = 'TEST';
}
}

Expand Down
4 changes: 2 additions & 2 deletions projects/angular/src/forms/common/wrapped-control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { ControlIdService } from './providers/control-id.service';
import { MarkControlService } from './providers/mark-control.service';
import { Helpers, NgControlService } from './providers/ng-control.service';

export enum CHANGES_KEYS {
export enum CHANGE_KEYS {
FORM = 'form',
MODEL = 'model',
}
Expand Down Expand Up @@ -121,7 +121,7 @@ export class WrappedFormControl<W extends DynamicWrapper> 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();
Expand Down

0 comments on commit ea53d08

Please sign in to comment.