@apexcura/ui-components 0.0.13-Beta37 → 0.0.13-Beta39
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/dist/index.js +5 -3
- package/dist/index.mjs +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -880,15 +880,17 @@ var MultiSelect = (props) => {
|
|
|
880
880
|
const handleFirstChange = (value) => {
|
|
881
881
|
if (props.onChange) {
|
|
882
882
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
883
|
-
|
|
883
|
+
console.log("filterOption1--------", filterOption2);
|
|
884
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 && filterOption2 }));
|
|
884
885
|
props.onChange(selectedValue);
|
|
885
886
|
}
|
|
886
887
|
};
|
|
887
888
|
const handleSecondChange = (value) => {
|
|
888
889
|
if (props.onChange) {
|
|
889
890
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
890
|
-
|
|
891
|
-
|
|
891
|
+
console.log("filterOption2--------", filterOption2);
|
|
892
|
+
setSelectedValue((prev) => ({ ...prev, secondValue: filterOption2 && filterOption2 }));
|
|
893
|
+
props.onChange(selectedValue);
|
|
892
894
|
}
|
|
893
895
|
};
|
|
894
896
|
return /* @__PURE__ */ import_react27.default.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ import_react27.default.createElement(
|
package/dist/index.mjs
CHANGED
|
@@ -824,15 +824,17 @@ var MultiSelect = (props) => {
|
|
|
824
824
|
const handleFirstChange = (value) => {
|
|
825
825
|
if (props.onChange) {
|
|
826
826
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
827
|
-
|
|
827
|
+
console.log("filterOption1--------", filterOption2);
|
|
828
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 && filterOption2 }));
|
|
828
829
|
props.onChange(selectedValue);
|
|
829
830
|
}
|
|
830
831
|
};
|
|
831
832
|
const handleSecondChange = (value) => {
|
|
832
833
|
if (props.onChange) {
|
|
833
834
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
834
|
-
|
|
835
|
-
|
|
835
|
+
console.log("filterOption2--------", filterOption2);
|
|
836
|
+
setSelectedValue((prev) => ({ ...prev, secondValue: filterOption2 && filterOption2 }));
|
|
837
|
+
props.onChange(selectedValue);
|
|
836
838
|
}
|
|
837
839
|
};
|
|
838
840
|
return /* @__PURE__ */ React26.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ React26.createElement(
|