@majoo-ui/react 1.59.3-rc.6 → 1.59.3-rc.7
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 +3 -1
- package/index.umd.js +3 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -11551,6 +11551,7 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
11551
11551
|
}, [query]);
|
|
11552
11552
|
const handleInputValue = (value, isReset = false) => {
|
|
11553
11553
|
if (onSearch && !isReset) onSearch(value);
|
|
11554
|
+
if (fetchData) return;
|
|
11554
11555
|
if (value === '') {
|
|
11555
11556
|
return setItem(options);
|
|
11556
11557
|
} else {
|
|
@@ -11789,7 +11790,8 @@ const InputSelect = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
11789
11790
|
children: jsx(InputSearchbox, {
|
|
11790
11791
|
size: 'sm',
|
|
11791
11792
|
onChange: handleInputValue,
|
|
11792
|
-
placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...')
|
|
11793
|
+
placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...'),
|
|
11794
|
+
withDebounce: true
|
|
11793
11795
|
}, void 0)
|
|
11794
11796
|
}), void 0), item.length > 0 || isLoading ? jsx(ConditionalWrapper, Object.assign({
|
|
11795
11797
|
condition: !!fetchData && item.length > 0,
|
package/index.umd.js
CHANGED
|
@@ -11652,6 +11652,7 @@
|
|
|
11652
11652
|
isReset = false;
|
|
11653
11653
|
}
|
|
11654
11654
|
if (onSearch && !isReset) onSearch(value);
|
|
11655
|
+
if (fetchData) return;
|
|
11655
11656
|
if (value === '') {
|
|
11656
11657
|
return setItem(options);
|
|
11657
11658
|
} else {
|
|
@@ -11910,7 +11911,8 @@
|
|
|
11910
11911
|
children: jsxRuntime.jsx(InputSearchbox, {
|
|
11911
11912
|
size: 'sm',
|
|
11912
11913
|
onChange: handleInputValue,
|
|
11913
|
-
placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...')
|
|
11914
|
+
placeholder: searchPlaceholder !== null && searchPlaceholder !== void 0 ? searchPlaceholder : t('searchPlaceholder', 'Cari ...'),
|
|
11915
|
+
withDebounce: true
|
|
11914
11916
|
}, void 0)
|
|
11915
11917
|
}), void 0), item.length > 0 || isLoading ? jsxRuntime.jsx(ConditionalWrapper, __assign({
|
|
11916
11918
|
condition: !!fetchData && item.length > 0,
|