ywana-core8 0.0.179 → 0.0.183

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.
@@ -2844,7 +2844,7 @@ var FieldEditor = function FieldEditor(_ref4) {
2844
2844
  }
2845
2845
 
2846
2846
  function renderField() {
2847
- var value1 = field.value ? field.value : field["default"];
2847
+ var value1 = field.value || field.value === "" ? field.value : field["default"];
2848
2848
  var isHidden = CHECK['isFunction'](hidden) ? hidden(field, value1) : hidden;
2849
2849
 
2850
2850
  if (isHidden) {
@@ -3024,7 +3024,7 @@ var NumberEditor = function NumberEditor(_ref7) {
3024
3024
  if (onChange) onChange(id, value);
3025
3025
  }
3026
3026
 
3027
- var val = value || field["default"];
3027
+ var val = value || value === "" ? value : field["default"];
3028
3028
  var min = field.min;
3029
3029
  var max = field.max;
3030
3030
  var disabled = !editable;