dynamic-mui 1.0.4 → 1.0.6

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.
@@ -52,14 +52,16 @@ function FormGenerator(props) {
52
52
  var layout = (0, _helper.generateLayout)((0, _helper.updatePatchData)(JSON.parse(JSON.stringify(dataObj)), patch, guid));
53
53
  var onUpdate = function onUpdate(_ref) {
54
54
  var id = _ref.id,
55
- value = _ref.value;
55
+ value = _ref.value,
56
+ option = _ref.option;
56
57
  try {
57
58
  if ((0, _isEmpty.default)(response[guid])) response[guid] = patch;
58
59
  response[guid][id] = value;
59
60
  if (typeof onChange === 'function') {
60
61
  onChange({
61
62
  id: id,
62
- value: value
63
+ value: value,
64
+ option: option
63
65
  });
64
66
  }
65
67
  } catch (e) {
@@ -73,8 +73,8 @@ function Select(_ref) {
73
73
  _react.default.useEffect(function () {
74
74
  onChange({
75
75
  id: id,
76
- value: value,
77
- inputValue: inputValue
76
+ value: inputValue,
77
+ option: value
78
78
  });
79
79
  }, [value, inputValue]);
80
80
  return /*#__PURE__*/_react.default.createElement(_Autocomplete.default, _extends({}, getMuiAttributes(), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-mui",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "author": "Dinakaran S",
5
5
  "user": "dinakarans",
6
6
  "repository": {