@majoo-ui/react 1.60.10-rc.1 → 1.60.11-rc.1
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/index.esm.js +2 -0
- package/index.umd.js +2 -0
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -13098,6 +13098,8 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
13098
13098
|
}, [query]);
|
|
13099
13099
|
useEffect(() => {
|
|
13100
13100
|
setSelectedValue(value);
|
|
13101
|
+
}, [value]);
|
|
13102
|
+
useEffect(() => {
|
|
13101
13103
|
if (groupedItems && value) {
|
|
13102
13104
|
const itemIndex = (groupedItems.length > 0 ? groupedItems : item !== null && item !== void 0 ? item : []).findIndex(val => String(val.value) === String(value.value));
|
|
13103
13105
|
if (itemIndex >= 0) {
|
package/index.umd.js
CHANGED
|
@@ -13231,6 +13231,8 @@
|
|
|
13231
13231
|
}, [query]);
|
|
13232
13232
|
React.useEffect(function () {
|
|
13233
13233
|
setSelectedValue(value);
|
|
13234
|
+
}, [value]);
|
|
13235
|
+
React.useEffect(function () {
|
|
13234
13236
|
if (groupedItems && value) {
|
|
13235
13237
|
var itemIndex = (groupedItems.length > 0 ? groupedItems : item !== null && item !== void 0 ? item : []).findIndex(function (val) {
|
|
13236
13238
|
return String(val.value) === String(value.value);
|