@gridsuite/commons-ui 0.20.1 → 0.20.2

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.
@@ -61,6 +61,11 @@ var ElementSearchDialog = function ElementSearchDialog(props) {
61
61
  }
62
62
  };
63
63
 
64
+ var handleClose = (0, _react.useCallback)(function () {
65
+ setExpanded(false);
66
+ setElements([]);
67
+ onClose();
68
+ }, [onClose]);
64
69
  return /*#__PURE__*/_react["default"].createElement(_material.Dialog, {
65
70
  open: open,
66
71
  onClose: onClose,
@@ -101,7 +106,8 @@ var ElementSearchDialog = function ElementSearchDialog(props) {
101
106
  return renderElement(_extends({}, optionProps, {
102
107
  element: element,
103
108
  inputValue: inputValue,
104
- onClose: onClose
109
+ setExpanded: setExpanded,
110
+ onClose: handleClose
105
111
  }));
106
112
  },
107
113
  renderInput: function renderInput(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.20.1",
3
+ "version": "0.20.2",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "main": "lib/index.js",
6
6
  "files": [