@apexcura/ui-components 0.0.13-Beta37 → 0.0.13-Beta38
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -880,15 +880,15 @@ 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
|
-
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 }));
|
|
883
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 && filterOption2 }));
|
|
884
884
|
props.onChange(selectedValue);
|
|
885
885
|
}
|
|
886
886
|
};
|
|
887
887
|
const handleSecondChange = (value) => {
|
|
888
888
|
if (props.onChange) {
|
|
889
889
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
890
|
-
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 }));
|
|
891
|
-
props.onChange(
|
|
890
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 && filterOption2 }));
|
|
891
|
+
props.onChange(selectedValue);
|
|
892
892
|
}
|
|
893
893
|
};
|
|
894
894
|
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,15 @@ 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
|
-
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 }));
|
|
827
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 && filterOption2 }));
|
|
828
828
|
props.onChange(selectedValue);
|
|
829
829
|
}
|
|
830
830
|
};
|
|
831
831
|
const handleSecondChange = (value) => {
|
|
832
832
|
if (props.onChange) {
|
|
833
833
|
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
834
|
-
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 }));
|
|
835
|
-
props.onChange(
|
|
834
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 && filterOption2 }));
|
|
835
|
+
props.onChange(selectedValue);
|
|
836
836
|
}
|
|
837
837
|
};
|
|
838
838
|
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(
|