ywana-core8 0.0.419 → 0.0.422

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
@@ -1903,8 +1903,6 @@
1903
1903
  value = _useState[0],
1904
1904
  setValue = _useState[1];
1905
1905
 
1906
- React.useState(false);
1907
-
1908
1906
  function remove(index) {
1909
1907
  var next = tokens.slice();
1910
1908
  next.splice(index, 1);
@@ -1917,7 +1915,7 @@
1917
1915
  }
1918
1916
 
1919
1917
  function changeDropDown(fid, value) {
1920
- var next = tokens.concat(value);
1918
+ var next = Array.isArray(tokens) ? tokens.concat(value) : [value];
1921
1919
  if (onChange) onChange(id, next);
1922
1920
  setValue('');
1923
1921
  }
@@ -3462,7 +3460,8 @@
3462
3460
  accept = _ref.accept,
3463
3461
  onSuccess = _ref.onSuccess,
3464
3462
  onComplete = _ref.onComplete,
3465
- onClose = _ref.onClose;
3463
+ onClose = _ref.onClose,
3464
+ children = _ref.children;
3466
3465
  var site = React.useContext(SiteContext);
3467
3466
 
3468
3467
  function success(file, message) {
@@ -3500,7 +3499,7 @@
3500
3499
  target: target,
3501
3500
  onSuccess: success,
3502
3501
  onComplete: complete
3503
- }));
3502
+ }), children);
3504
3503
  };
3505
3504
 
3506
3505
  /**
@@ -4099,7 +4098,6 @@
4099
4098
  Editor = field.Editor;
4100
4099
 
4101
4100
  function change(id, value) {
4102
- console.log(id, value);
4103
4101
  if (onChange) onChange(id, value);
4104
4102
  }
4105
4103