@balena/ui-shared-components 12.1.1-build-renovate-major-7-react-router-dom-4beacb6ba25733365ce70a4c8bf459881eac1496-1 → 12.1.1-build-fix-automplete-03768d3c9b81b50e00ebf2c4728366eddd1a02ff-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.
|
@@ -94,6 +94,9 @@ const VirtualizedAutocompleteBase = (_a, ref) => {
|
|
|
94
94
|
},
|
|
95
95
|
itemCount: response.totalItems,
|
|
96
96
|
}), [loadNextPage, response.totalItems, response.data, page, query]);
|
|
97
|
+
React.useEffect(() => {
|
|
98
|
+
void loadNextPage(0, [], '');
|
|
99
|
+
}, []);
|
|
97
100
|
return (_jsx(Autocomplete, Object.assign({}, props, { ref: ref, loading: isNextPageLoading, options: options !== null && options !== void 0 ? options : response.data, renderOption: (renderOptionProps, option, state, ownerState) => ({
|
|
98
101
|
props: renderOptionProps,
|
|
99
102
|
option: renderOption === null || renderOption === void 0 ? void 0 : renderOption(renderOptionProps, option, state, ownerState),
|
|
@@ -102,10 +105,6 @@ const VirtualizedAutocompleteBase = (_a, ref) => {
|
|
|
102
105
|
isNextPageLoading,
|
|
103
106
|
pagination,
|
|
104
107
|
}, ListboxComponent: ListboxComponent, onInputChange: async (event, input) => {
|
|
105
|
-
// dropdown is opened, we should move this in a useEffect
|
|
106
|
-
if (!event && !response.totalItems) {
|
|
107
|
-
await loadNextPage(0, [], '');
|
|
108
|
-
}
|
|
109
108
|
// input change
|
|
110
109
|
if ((event === null || event === void 0 ? void 0 : event.type) === 'change') {
|
|
111
110
|
await debouncedInputChange(input, []);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balena/ui-shared-components",
|
|
3
|
-
"version": "12.1.1-build-
|
|
3
|
+
"version": "12.1.1-build-fix-automplete-03768d3c9b81b50e00ebf2c4728366eddd1a02ff-1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"files": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-dropzone": "^14.2.3",
|
|
45
45
|
"react-helmet": "^6.1.0",
|
|
46
46
|
"react-markdown": "^10.0.0",
|
|
47
|
-
"react-router-dom": "^
|
|
47
|
+
"react-router-dom": "^6.28.0",
|
|
48
48
|
"remark-breaks": "^4.0.0",
|
|
49
49
|
"remark-gfm": "^4.0.0",
|
|
50
50
|
"rimraf": "^6.0.0",
|
|
@@ -138,6 +138,6 @@
|
|
|
138
138
|
},
|
|
139
139
|
"homepage": "https://github.com/balena-io/ui-shared-components#readme",
|
|
140
140
|
"versionist": {
|
|
141
|
-
"publishedAt": "2025-04-
|
|
141
|
+
"publishedAt": "2025-04-10T12:32:38.432Z"
|
|
142
142
|
}
|
|
143
143
|
}
|