From 76cdedd967aef28eae3072d08d270a92500d1123 Mon Sep 17 00:00:00 2001 From: Andrei Augustin <36695484+andreiaugustin@users.noreply.github.com> Date: Tue, 16 Jul 2024 17:36:34 +0300 Subject: [PATCH] Update acroform.js Updated error text document.initForms() to document.initForm() as correct method name is initForm() --- lib/mixins/acroform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mixins/acroform.js b/lib/mixins/acroform.js index 9249aa4e..41064eda 100644 --- a/lib/mixins/acroform.js +++ b/lib/mixins/acroform.js @@ -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);