warqadui 0.0.18 → 0.0.19
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2042,7 +2042,7 @@ var SearchApiContent = ({
|
|
|
2042
2042
|
setHasAttemptedHydration(true);
|
|
2043
2043
|
if (selectedObject) setSelectedObject(void 0);
|
|
2044
2044
|
}
|
|
2045
|
-
}, [currentValue
|
|
2045
|
+
}, [currentValue]);
|
|
2046
2046
|
const getOptionValue = (option) => {
|
|
2047
2047
|
if (valueKey === "_id" && option._id === void 0 && option.id !== void 0) {
|
|
2048
2048
|
return option.id;
|
|
@@ -2059,7 +2059,7 @@ var SearchApiContent = ({
|
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
}, [currentValue, options,
|
|
2062
|
+
}, [currentValue, options, obj]);
|
|
2063
2063
|
(0, import_react13.useEffect)(() => {
|
|
2064
2064
|
if (prevApiRef.current !== api) {
|
|
2065
2065
|
prevApiRef.current = api;
|
|
@@ -2084,7 +2084,7 @@ var SearchApiContent = ({
|
|
|
2084
2084
|
}
|
|
2085
2085
|
fetchOptions("");
|
|
2086
2086
|
}
|
|
2087
|
-
}, [api,
|
|
2087
|
+
}, [api, name, obj]);
|
|
2088
2088
|
(0, import_react13.useEffect)(() => {
|
|
2089
2089
|
const handleClickOutside = (event) => {
|
|
2090
2090
|
const target = event.target;
|
package/dist/index.mjs
CHANGED
|
@@ -1978,7 +1978,7 @@ var SearchApiContent = ({
|
|
|
1978
1978
|
setHasAttemptedHydration(true);
|
|
1979
1979
|
if (selectedObject) setSelectedObject(void 0);
|
|
1980
1980
|
}
|
|
1981
|
-
}, [currentValue
|
|
1981
|
+
}, [currentValue]);
|
|
1982
1982
|
const getOptionValue = (option) => {
|
|
1983
1983
|
if (valueKey === "_id" && option._id === void 0 && option.id !== void 0) {
|
|
1984
1984
|
return option.id;
|
|
@@ -1995,7 +1995,7 @@ var SearchApiContent = ({
|
|
|
1995
1995
|
}
|
|
1996
1996
|
}
|
|
1997
1997
|
}
|
|
1998
|
-
}, [currentValue, options,
|
|
1998
|
+
}, [currentValue, options, obj]);
|
|
1999
1999
|
useEffect7(() => {
|
|
2000
2000
|
if (prevApiRef.current !== api) {
|
|
2001
2001
|
prevApiRef.current = api;
|
|
@@ -2020,7 +2020,7 @@ var SearchApiContent = ({
|
|
|
2020
2020
|
}
|
|
2021
2021
|
fetchOptions("");
|
|
2022
2022
|
}
|
|
2023
|
-
}, [api,
|
|
2023
|
+
}, [api, name, obj]);
|
|
2024
2024
|
useEffect7(() => {
|
|
2025
2025
|
const handleClickOutside = (event) => {
|
|
2026
2026
|
const target = event.target;
|