@fixefy/fixefy-ui-components 0.2.31 → 0.2.32
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.
|
@@ -187,14 +187,10 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
187
187
|
if (newOptions == null || newOptions.length < pageSize) {
|
|
188
188
|
setIsLastPage(true);
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
...prevOptions,
|
|
195
|
-
...newOptions
|
|
196
|
-
]);
|
|
197
|
-
}
|
|
190
|
+
reason !== 'loaded more' ? setOptions(newOptions) : setOptions((prevOptions)=>[
|
|
191
|
+
...prevOptions,
|
|
192
|
+
...newOptions
|
|
193
|
+
]);
|
|
198
194
|
}
|
|
199
195
|
}, [
|
|
200
196
|
data,
|
|
@@ -251,17 +247,20 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
251
247
|
deleteOneItem(option);
|
|
252
248
|
} else {
|
|
253
249
|
onAdd && onAdd(option);
|
|
250
|
+
setIOpen(false);
|
|
254
251
|
setDisplayed((prev)=>[
|
|
255
252
|
...prev,
|
|
256
253
|
option
|
|
257
254
|
]);
|
|
258
255
|
addToStoredDisplayed(option);
|
|
256
|
+
setIOpen(false);
|
|
259
257
|
}
|
|
260
258
|
break;
|
|
261
259
|
default:
|
|
262
260
|
setDisplayed(option);
|
|
263
261
|
onAdd && onAdd(option);
|
|
264
262
|
addToStoredDisplayed(option);
|
|
263
|
+
setIOpen(false);
|
|
265
264
|
}
|
|
266
265
|
};
|
|
267
266
|
const deleteOneItem = (item)=>{
|
|
@@ -546,11 +545,6 @@ const FxAsyncDropdown = /*#__PURE__*/ _react.default.forwardRef((props)=>{
|
|
|
546
545
|
},
|
|
547
546
|
onFocus: ()=>{
|
|
548
547
|
!isInitialOpen && setIOpen(true);
|
|
549
|
-
},
|
|
550
|
-
onBlur: ()=>{
|
|
551
|
-
setTimeout(()=>{
|
|
552
|
-
!isInitialOpen && setIOpen(false);
|
|
553
|
-
}, 200);
|
|
554
548
|
}
|
|
555
549
|
}),
|
|
556
550
|
loading && /*#__PURE__*/ (0, _jsxruntime.jsx)(_dropdownstyles.Loading, {
|
package/package.json
CHANGED