@websy/websy-designs 1.12.3 → 1.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2889,7 +2889,7 @@ class MultiForm {
|
|
|
2889
2889
|
el.remove()
|
|
2890
2890
|
}
|
|
2891
2891
|
const addEl = document.getElementById(`${this.elementId}_addButton`)
|
|
2892
|
-
if (addEl) {
|
|
2892
|
+
if (addEl && this.options.allowAdd) {
|
|
2893
2893
|
addEl.style.display = (typeof this.options.maxRows === 'undefined' || this.forms.length < this.options.maxRows) ? 'flex' : 'none'
|
|
2894
2894
|
}
|
|
2895
2895
|
// delete form element based on id
|
|
@@ -2880,7 +2880,7 @@ var MultiForm = /*#__PURE__*/function () {
|
|
|
2880
2880
|
el.remove();
|
|
2881
2881
|
}
|
|
2882
2882
|
var addEl = document.getElementById("".concat(this.elementId, "_addButton"));
|
|
2883
|
-
if (addEl) {
|
|
2883
|
+
if (addEl && this.options.allowAdd) {
|
|
2884
2884
|
addEl.style.display = typeof this.options.maxRows === 'undefined' || this.forms.length < this.options.maxRows ? 'flex' : 'none';
|
|
2885
2885
|
}
|
|
2886
2886
|
// delete form element based on id
|