Skip to content

Commit

Permalink
Merge pull request #1541 from GSA/formly-dirty-state
Browse files Browse the repository at this point in the history
Marked as dirty after clearing the input value
  • Loading branch information
yerramshilpa authored Sep 26, 2024
2 parents a4f0151 + 06cefdf commit 2a92655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/packages/sam-formly/src/lib/formly/types/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class FormlyFieldInputComponent extends FieldType<FieldTypeConfig> {
onClear() {
this.field.formControl.setValue('');
this.field.focus = true;
this.field.formControl.markAsDirty();
}

onSuffixClick(ev) {
Expand Down

0 comments on commit 2a92655

Please sign in to comment.