josenanodev-react-components-library 0.0.23 → 0.0.24
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.
|
@@ -36,9 +36,6 @@ const ParallelSelectionList = ({ dataList, applyAction, cancelAction, onSelectio
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
setSelectedDatumsIds(selectedDatumsIdsClone);
|
|
39
|
-
if (onSelectionChange) {
|
|
40
|
-
onSelectionChange(selectedDatumsIdsClone);
|
|
41
|
-
}
|
|
42
39
|
};
|
|
43
40
|
const removeFromSelectedDatumsIds = (datumIdsArray) => {
|
|
44
41
|
const selectedDatumsIdsClone = [...selectedDatumsIds];
|
|
@@ -48,9 +45,6 @@ const ParallelSelectionList = ({ dataList, applyAction, cancelAction, onSelectio
|
|
|
48
45
|
}
|
|
49
46
|
});
|
|
50
47
|
setSelectedDatumsIds(selectedDatumsIdsClone);
|
|
51
|
-
if (onSelectionChange) {
|
|
52
|
-
onSelectionChange(selectedDatumsIdsClone);
|
|
53
|
-
}
|
|
54
48
|
};
|
|
55
49
|
//useEffects
|
|
56
50
|
(0, react_2.useEffect)(() => {
|
|
@@ -97,6 +91,13 @@ const ParallelSelectionList = ({ dataList, applyAction, cancelAction, onSelectio
|
|
|
97
91
|
listElementsHeight,
|
|
98
92
|
filteredRightList.length,
|
|
99
93
|
]);
|
|
94
|
+
(0, react_2.useEffect)(() => {
|
|
95
|
+
//I know what I am doing... maybe
|
|
96
|
+
if (onSelectionChange) {
|
|
97
|
+
onSelectionChange(selectedDatumsIds);
|
|
98
|
+
}
|
|
99
|
+
// eslint-disable-next-line
|
|
100
|
+
}, [selectedDatumsIds]);
|
|
100
101
|
return (react_1.default.createElement("div", { className: "parallel-selection-list" },
|
|
101
102
|
react_1.default.createElement("div", { className: "div-left-list" },
|
|
102
103
|
react_1.default.createElement("p", { className: "list-title" }, leftListTitle),
|
|
@@ -31,9 +31,6 @@ const ParallelSelectionList = ({ dataList, applyAction, cancelAction, onSelectio
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
setSelectedDatumsIds(selectedDatumsIdsClone);
|
|
34
|
-
if (onSelectionChange) {
|
|
35
|
-
onSelectionChange(selectedDatumsIdsClone);
|
|
36
|
-
}
|
|
37
34
|
};
|
|
38
35
|
const removeFromSelectedDatumsIds = (datumIdsArray) => {
|
|
39
36
|
const selectedDatumsIdsClone = [...selectedDatumsIds];
|
|
@@ -43,9 +40,6 @@ const ParallelSelectionList = ({ dataList, applyAction, cancelAction, onSelectio
|
|
|
43
40
|
}
|
|
44
41
|
});
|
|
45
42
|
setSelectedDatumsIds(selectedDatumsIdsClone);
|
|
46
|
-
if (onSelectionChange) {
|
|
47
|
-
onSelectionChange(selectedDatumsIdsClone);
|
|
48
|
-
}
|
|
49
43
|
};
|
|
50
44
|
//useEffects
|
|
51
45
|
useEffect(() => {
|
|
@@ -92,6 +86,13 @@ const ParallelSelectionList = ({ dataList, applyAction, cancelAction, onSelectio
|
|
|
92
86
|
listElementsHeight,
|
|
93
87
|
filteredRightList.length,
|
|
94
88
|
]);
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
//I know what I am doing... maybe
|
|
91
|
+
if (onSelectionChange) {
|
|
92
|
+
onSelectionChange(selectedDatumsIds);
|
|
93
|
+
}
|
|
94
|
+
// eslint-disable-next-line
|
|
95
|
+
}, [selectedDatumsIds]);
|
|
95
96
|
return (React.createElement("div", { className: "parallel-selection-list" },
|
|
96
97
|
React.createElement("div", { className: "div-left-list" },
|
|
97
98
|
React.createElement("p", { className: "list-title" }, leftListTitle),
|