@wise/dynamic-flow-client 3.28.4 → 3.28.5
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/build/main.js +3 -3
- package/build/main.min.js +1 -1
- package/build/main.mjs +3 -3
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -10375,7 +10375,7 @@ var createSearchComponent = (searchProps, performSearch, onAction, updateCompone
|
|
|
10375
10375
|
draft.query = query;
|
|
10376
10376
|
draft.isLoading = true;
|
|
10377
10377
|
});
|
|
10378
|
-
debouncedSearch(query);
|
|
10378
|
+
debouncedSearch(query.trim());
|
|
10379
10379
|
};
|
|
10380
10380
|
return {
|
|
10381
10381
|
type: "search",
|
|
@@ -18977,7 +18977,7 @@ function DynamicSearch({ component, onAction }) {
|
|
|
18977
18977
|
};
|
|
18978
18978
|
const onChange = (value) => {
|
|
18979
18979
|
setQuery(value);
|
|
18980
|
-
debouncedSearch(value);
|
|
18980
|
+
debouncedSearch(value.trim());
|
|
18981
18981
|
};
|
|
18982
18982
|
const onResultSelected = ({ type, value }) => {
|
|
18983
18983
|
if (type === "action") {
|
|
@@ -18992,7 +18992,7 @@ function DynamicSearch({ component, onAction }) {
|
|
|
18992
18992
|
setQuery(value.query);
|
|
18993
18993
|
const { url: url2, method: method2, param: param2, query: query2 } = value;
|
|
18994
18994
|
onEvent("Dynamic Flow - Search Result Selected", { type: "search" });
|
|
18995
|
-
void search(query2, { url: url2, method: method2, param: param2 });
|
|
18995
|
+
void search(query2.trim(), { url: url2, method: method2, param: param2 });
|
|
18996
18996
|
}
|
|
18997
18997
|
};
|
|
18998
18998
|
const onRetrySearch = () => {
|