@mw-kit/mw-ui 1.2.3 → 1.2.4
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 +8 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13633,23 +13633,17 @@ var Select = React__default.forwardRef(function (props, ref) {
|
|
|
13633
13633
|
} catch (e) {
|
|
13634
13634
|
return Promise.reject(e);
|
|
13635
13635
|
}
|
|
13636
|
-
}, [search, page]);
|
|
13636
|
+
}, [loader, search, page]);
|
|
13637
13637
|
React.useEffect(function () {
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
_setSearch(function (prev) {
|
|
13641
|
-
if (prev !== '') changed = true;
|
|
13642
|
-
return '';
|
|
13643
|
-
});
|
|
13644
|
-
|
|
13645
|
-
setPage(function (prev) {
|
|
13646
|
-
if (prev !== 1) changed = true;
|
|
13647
|
-
return 1;
|
|
13648
|
-
});
|
|
13649
|
-
if (!changed) onSubmit();
|
|
13638
|
+
setSearch('');
|
|
13650
13639
|
}, [loader]);
|
|
13651
13640
|
React.useEffect(function () {
|
|
13652
|
-
|
|
13641
|
+
var timeoutId = setTimeout(function () {
|
|
13642
|
+
return onSubmit();
|
|
13643
|
+
}, 250);
|
|
13644
|
+
return function () {
|
|
13645
|
+
return clearTimeout(timeoutId);
|
|
13646
|
+
};
|
|
13653
13647
|
}, [onSubmit]);
|
|
13654
13648
|
return React__default.createElement(Provider.Provider, {
|
|
13655
13649
|
value: {
|