@sledge-app/react-instant-search 2.0.47 → 2.0.49
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.
|
@@ -883,6 +883,8 @@ const Slider = (props) => {
|
|
|
883
883
|
clearTimeout(delayInputRangeRef.current);
|
|
884
884
|
}
|
|
885
885
|
delayInputRangeRef.current = setTimeout(() => {
|
|
886
|
+
if (!(valueInput == null ? void 0 : valueInput.length))
|
|
887
|
+
return;
|
|
886
888
|
const lastValueMin = valueCommit == null ? void 0 : valueCommit[0];
|
|
887
889
|
const lastValueMax = (valueCommit == null ? void 0 : valueCommit[1]) || lastValueMin;
|
|
888
890
|
const valueInputRange = inputRangeFormatter(type2 === "min" ? lastValueMax : lastValueMin);
|
|
@@ -6777,7 +6779,7 @@ const handleSearchResponse = async (props) => {
|
|
|
6777
6779
|
const isContainsFilter = (instantSearchSettings == null ? void 0 : instantSearchSettings.contains_filter) && (searchableAttributes == null ? void 0 : searchableAttributes.length) && (keywordProp == null ? void 0 : keywordProp.length);
|
|
6778
6780
|
let containsFilter = null;
|
|
6779
6781
|
if (isContainsFilter) {
|
|
6780
|
-
containsFilter = searchableAttributes.map((item) => `'${item}' CONTAINS ${JSON.stringify(keywordProp)}`).join(" OR ")
|
|
6782
|
+
containsFilter = `(${searchableAttributes.map((item) => `'${item}' CONTAINS ${JSON.stringify(keywordProp)}`).join(" OR ")})`;
|
|
6781
6783
|
keyword = "";
|
|
6782
6784
|
}
|
|
6783
6785
|
let response;
|