sag_components 1.0.97 → 1.0.98

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.
@@ -70,6 +70,10 @@ var Dropdown = function Dropdown(_ref) {
70
70
  _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
71
71
  currentOption = _useState4[0],
72
72
  setCurrentOption = _useState4[1];
73
+ var _useState5 = (0, _react.useState)(false),
74
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
75
+ defaultValueSetFlag = _useState6[0],
76
+ setDefaultValueSetFlag = _useState6[1];
73
77
  (0, _react.useEffect)(function () {
74
78
  var delayDebounceFn = setTimeout(function () {
75
79
  onInputChange(currentInputValue);
@@ -131,6 +135,7 @@ var Dropdown = function Dropdown(_ref) {
131
135
  syntheticBaseEvent: event,
132
136
  newValue: newValue
133
137
  });
138
+ setDefaultValueSetFlag(true);
134
139
  onChange({
135
140
  syntheticBaseEvent: event,
136
141
  newValue: newValue
@@ -173,8 +178,10 @@ var Dropdown = function Dropdown(_ref) {
173
178
  onInputChange: function onInputChange(event, newInputValue) {
174
179
  onInputChangeHandler(event, newInputValue);
175
180
  },
176
- disablePortal: true,
177
- value: defaultValue && !(currentOption !== null && currentOption !== void 0 && currentOption.newValue) ? defaultValue : currentOption === null || currentOption === void 0 ? void 0 : currentOption.newValue,
181
+ disablePortal: true
182
+ // value={defaultValue && !currentOption?.newValue ? defaultValue : currentOption?.newValue}
183
+ ,
184
+ value: defaultValue && !defaultValueSetFlag ? defaultValue : currentOption === null || currentOption === void 0 ? void 0 : currentOption.newValue,
178
185
  id: "combo-box",
179
186
  options: options,
180
187
  sx: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.97",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {