indicator-ui 0.0.35 → 0.0.36
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.js
CHANGED
|
@@ -9490,7 +9490,8 @@ function SelectField({ value, onChange, options = [], placeholder, isError, isSe
|
|
|
9490
9490
|
const onScrollToBottom = async () => {
|
|
9491
9491
|
if (loadMoreOptions) {
|
|
9492
9492
|
const newOptions = await loadMoreOptions(optionsState?.length);
|
|
9493
|
-
|
|
9493
|
+
if (newOptions !== undefined)
|
|
9494
|
+
setOptionsState(prevState => [...prevState, ...newOptions]);
|
|
9494
9495
|
}
|
|
9495
9496
|
};
|
|
9496
9497
|
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: className?.selectField, children: [getViewField(), isShowModalWindow && ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { ref: modalWindowRef, className: className?.modalWindow, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_SelectModalWindow__WEBPACK_IMPORTED_MODULE_5__["default"], { value: value, options: optionsState, onChange: handleChange, afterElement: selectModalWindowAfterElement, onScrollToBottom: onScrollToBottom, className: className }) }))] }));
|