Skip to content

Commit 9dadb13

Browse files
author
Martynas Žilinskas
committed
Renamed SetFieldsTouched to TouchFields.
1 parent c7da8f0 commit 9dadb13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/simplr-forms-dom/src/components/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class Form extends BaseForm<FormProps, {}> {
2727
return;
2828
}
2929

30-
this.FormStore.SetFieldsTouched();
30+
this.FormStore.TouchFields();
3131

3232
if (this.props.onSubmit == null) {
3333
return;

packages/simplr-forms/src/stores/form-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export class FormStore extends ActionEmitter {
379379
}
380380
}
381381

382-
public SetFieldsTouched(fieldsIds?: string[]): void {
382+
public TouchFields(fieldsIds?: string[]): void {
383383
this.State = this.State.withMutations(state => {
384384
if (fieldsIds == null) {
385385
fieldsIds = state.Fields.keySeq().toArray();

0 commit comments

Comments
 (0)