Skip to content

Commit

Permalink
Fixed Issue where fieldExists was not added to formApi
Browse files Browse the repository at this point in the history
  • Loading branch information
joepuzzo committed Jan 13, 2025
1 parent 2e88e37 commit 2b266f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
## 4.61.0 ( Dev 12th, 2024)
## 4.61.1 ( Jan 13th, 2024)

### Fixed

- Issue where fieldExists was not added to formApi

## 4.61.0 ( Dec 12th, 2024)

### Added

Expand Down
8 changes: 7 additions & 1 deletion src/FormController.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export class FormController {
this.enableForm = this.enableForm.bind(this);
this.getMemory = this.getMemory.bind(this);
this.restore = this.restore.bind(this);
this.fieldExists = this.fieldExists.bind(this);
}

getOptions() {
Expand All @@ -214,6 +215,10 @@ export class FormController {
return ObjectMap.get(this.state.maskedValues, name);
}

fieldExists(name) {
return !!this.fieldsMap.get(name);
}

setMaskedValue(name, value) {
return ObjectMap.set(this.state.maskedValues, name, value);
}
Expand Down Expand Up @@ -772,7 +777,8 @@ export class FormController {
disable: this.disableForm,
enable: this.enableForm,
restore: this.restore,
getMemory: this.getMemory
getMemory: this.getMemory,
fieldExists: this.fieldExists
};
}

Expand Down

0 comments on commit 2b266f7

Please sign in to comment.