Skip to content

Commit

Permalink
Update acroform.js
Browse files Browse the repository at this point in the history
Updated error text document.initForms() to document.initForm() as correct method name is initForm()
  • Loading branch information
andreiaugustin authored Jul 16, 2024
1 parent b35c6f9 commit 76cdedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mixins/acroform.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export default {
_fieldDict(name, type, options = {}) {
if (!this._acroform) {
throw new Error(
'Call document.initForms() method before adding form elements to document'
'Call document.initForm() method before adding form elements to document'
);
}
let opts = Object.assign({}, options);
Expand Down

0 comments on commit 76cdedd

Please sign in to comment.