@hi-ui/check-select 4.6.0-alpha.1 → 4.6.0-alpha.2
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/lib/cjs/CheckSelect.js +1 -1
- package/lib/esm/CheckSelect.js +1 -1
- package/package.json +2 -2
package/lib/cjs/CheckSelect.js
CHANGED
@@ -177,7 +177,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
177
177
|
}, node.title))) : true;
|
178
178
|
return ret;
|
179
179
|
}, [titleRender, searchValue, searchMode]);
|
180
|
-
var shouldUseSearch = !!searchValue && !hasError;
|
180
|
+
var shouldUseSearch = (!!searchValue || searchOnInit) && !hasError;
|
181
181
|
var showData = React.useMemo(function () {
|
182
182
|
return shouldUseSearch ? stateInSearch.data : flattedData;
|
183
183
|
}, [shouldUseSearch, flattedData, stateInSearch.data]);
|
package/lib/esm/CheckSelect.js
CHANGED
@@ -163,7 +163,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
163
163
|
}, node.title))) : true;
|
164
164
|
return ret;
|
165
165
|
}, [titleRender, searchValue, searchMode]);
|
166
|
-
var shouldUseSearch = !!searchValue && !hasError;
|
166
|
+
var shouldUseSearch = (!!searchValue || searchOnInit) && !hasError;
|
167
167
|
var showData = useMemo(function () {
|
168
168
|
return shouldUseSearch ? stateInSearch.data : flattedData;
|
169
169
|
}, [shouldUseSearch, flattedData, stateInSearch.data]);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/check-select",
|
3
|
-
"version": "4.6.0-alpha.
|
3
|
+
"version": "4.6.0-alpha.2",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
@@ -62,7 +62,7 @@
|
|
62
62
|
"@hi-ui/use-children": "^4.0.4",
|
63
63
|
"@hi-ui/use-data-source": "^4.0.4",
|
64
64
|
"@hi-ui/use-latest": "^4.0.4",
|
65
|
-
"@hi-ui/use-search-mode": "^4.
|
65
|
+
"@hi-ui/use-search-mode": "^4.1.4",
|
66
66
|
"@hi-ui/use-toggle": "^4.0.4",
|
67
67
|
"@hi-ui/use-uncontrolled-state": "^4.0.4",
|
68
68
|
"@hi-ui/virtual-list": "^4.0.8"
|