@agilant/toga-blox 1.0.113 → 1.0.114
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.
|
@@ -49,12 +49,9 @@ const SearchDatePickerInput = ({ themeBgColor = "bg-sky-500", lightThemeBg = "bg
|
|
|
49
49
|
return selectedDate ? formatAsYMD(selectedDate) : "";
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
|
-
// On Filter button click, combine the operator and the date string.
|
|
53
52
|
const handleFilterClick = () => {
|
|
54
53
|
const dateString = buildDateString().trim();
|
|
55
|
-
const operator = selectedOperator
|
|
56
|
-
? selectedOperator.value
|
|
57
|
-
: "";
|
|
54
|
+
const operator = selectedOperator?.value || "";
|
|
58
55
|
const combinedText = operator + dateString;
|
|
59
56
|
if (!combinedText) {
|
|
60
57
|
if (column && setSearchCriteria) {
|
|
@@ -71,8 +68,9 @@ const SearchDatePickerInput = ({ themeBgColor = "bg-sky-500", lightThemeBg = "bg
|
|
|
71
68
|
}
|
|
72
69
|
if (column && setSearchCriteria) {
|
|
73
70
|
setSearchCriteria((prev) => {
|
|
71
|
+
const filtered = prev.filter((c) => c.searchColumn.id !== column.id);
|
|
74
72
|
const newCriteria = [
|
|
75
|
-
...
|
|
73
|
+
...filtered,
|
|
76
74
|
{
|
|
77
75
|
searchColumn: column,
|
|
78
76
|
submittedSearchText: combinedText,
|