ywana-core8 0.0.413 → 0.0.416

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.
package/dist/index.umd.js CHANGED
@@ -1298,7 +1298,7 @@
1298
1298
  var id = _ref4[0],
1299
1299
  field = _ref4[1];
1300
1300
  form[id] = Object.assign({}, field, {
1301
- value: data[id]
1301
+ value: data[id] || field.defValue
1302
1302
  });
1303
1303
  return form;
1304
1304
  }, {});
@@ -1850,7 +1850,6 @@
1850
1850
  break;
1851
1851
  }
1852
1852
 
1853
- console.log(value, format);
1854
1853
  return /*#__PURE__*/React__default["default"].createElement("div", {
1855
1854
  className: "field-editor string-viewer"
1856
1855
  }, text);
@@ -4156,7 +4155,8 @@
4156
4155
  label: label,
4157
4156
  onChange: change,
4158
4157
  readOnly: !editable,
4159
- options: buildOptions()
4158
+ options: buildOptions(),
4159
+ init: value
4160
4160
  });
4161
4161
 
4162
4162
  default:
@@ -5769,13 +5769,6 @@
5769
5769
  for (var key in fs) {
5770
5770
  if (fs[key].filter === false) delete fs[key];
5771
5771
  }
5772
- } // TODO: check this
5773
-
5774
-
5775
- if (filterSchema[key].defValue) {
5776
- var _change;
5777
-
5778
- change((_change = {}, _change[key] = filterSchema[key].defValue, _change));
5779
5772
  }
5780
5773
  }
5781
5774
  } //Object.values(filterSchema).forEach(field => field.section = null)