puvox-library 1.1.31 → 1.1.33

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.
@@ -421,10 +421,10 @@ class PuvoxLibrary {
421
421
  formItemsToJson(FormElement){
422
422
  let formData = undefined;
423
423
  try { formData = new FormData(FormElement);}
424
- catch (e) {
425
- formData = new FormData();
426
- const formElements = element.querySelectorAll('input, select, textarea');
427
- formElements.forEach(input => { formData.append(input.name, input.value); });
424
+ catch (e) {
425
+ const newForm = document.createElement('form');
426
+ newForm.appendChild(FormElement.cloneNode(true));
427
+ formData = new FormData(newForm);
428
428
  }
429
429
  const formDataEntries = formData.entries();
430
430
  const handleChild = function (obj,keysArr,value){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "puvox-library",
3
- "version": "1.1.31",
3
+ "version": "1.1.33",
4
4
  "description": "library-class-javascript",
5
5
  "main": "library_standard.js",
6
6
  "scripts": {