ywana-core8 0.0.939 → 0.0.941

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
@@ -1495,7 +1495,8 @@
1495
1495
  editable = _props$editable === void 0 ? false : _props$editable,
1496
1496
  onBlur = props.onBlur,
1497
1497
  _props$position = props.position,
1498
- position = _props$position === void 0 ? "bottom" : _props$position;
1498
+ position = _props$position === void 0 ? "bottom" : _props$position,
1499
+ className = props.className;
1499
1500
  var _useState = React.useState(false),
1500
1501
  open = _useState[0],
1501
1502
  setOpen = _useState[1];
@@ -1584,7 +1585,7 @@
1584
1585
  size: "small"
1585
1586
  })) : props.label;
1586
1587
  return /*#__PURE__*/React__default["default"].createElement("div", {
1587
- className: "dropdown"
1588
+ className: "dropdown " + className
1588
1589
  }, /*#__PURE__*/React__default["default"].createElement(TextField, _extends({}, props, {
1589
1590
  label: title,
1590
1591
  onClick: onFocus,
@@ -7458,6 +7459,9 @@
7458
7459
  onReload: reloadSelection,
7459
7460
  patch: patch,
7460
7461
  onChange: onChange,
7462
+ onClose: function onClose() {
7463
+ return onSelect(null);
7464
+ },
7461
7465
  actions: editorActions,
7462
7466
  title: editorTitle,
7463
7467
  validator: editValidator
@@ -7818,6 +7822,7 @@
7818
7822
  canDelete = props.canDelete,
7819
7823
  onReload = props.onReload,
7820
7824
  onChange = props.onChange,
7825
+ onClose = props.onClose,
7821
7826
  _props$patch2 = props.patch,
7822
7827
  patch = _props$patch2 === void 0 ? false : _props$patch2,
7823
7828
  actions = props.actions,
@@ -7840,6 +7845,7 @@
7840
7845
  function clear() {
7841
7846
  pageContext.clear();
7842
7847
  setPageContext(Object.assign({}, pageContext));
7848
+ if (onClose) onClose();
7843
7849
  }
7844
7850
  function change(next) {
7845
7851
  setForm(next);