@apexcura/ui-components 0.0.13-Beta85 → 0.0.13-Beta86
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 -5
- package/dist/index.mjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -810,17 +810,17 @@ var DropDownGroup = (props) => {
|
|
|
810
810
|
const handleFirstChange = (value) => {
|
|
811
811
|
if (props.onChange) {
|
|
812
812
|
const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
|
|
813
|
-
|
|
814
|
-
|
|
813
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 }));
|
|
814
|
+
console.log("selectedValue----------", selectedValue);
|
|
815
815
|
props.onChange(selectedValue);
|
|
816
816
|
}
|
|
817
817
|
};
|
|
818
818
|
const handleSecondChange = (value) => {
|
|
819
819
|
if (props.onChange) {
|
|
820
|
-
const filterOption2 = props.options
|
|
820
|
+
const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
|
|
821
821
|
console.log("filterOption2--------", filterOption2);
|
|
822
|
-
setSelectedValue((prev) => ({ ...prev, secondValue: filterOption2
|
|
823
|
-
props.onChange(selectedValue
|
|
822
|
+
setSelectedValue((prev) => ({ ...prev, secondValue: filterOption2 }));
|
|
823
|
+
props.onChange(selectedValue);
|
|
824
824
|
}
|
|
825
825
|
};
|
|
826
826
|
return /* @__PURE__ */ import_react25.default.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ import_react25.default.createElement(
|
package/dist/index.mjs
CHANGED
|
@@ -753,17 +753,17 @@ var DropDownGroup = (props) => {
|
|
|
753
753
|
const handleFirstChange = (value) => {
|
|
754
754
|
if (props.onChange) {
|
|
755
755
|
const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
|
|
756
|
-
|
|
757
|
-
|
|
756
|
+
setSelectedValue((prev) => ({ ...prev, firstValue: filterOption2 }));
|
|
757
|
+
console.log("selectedValue----------", selectedValue);
|
|
758
758
|
props.onChange(selectedValue);
|
|
759
759
|
}
|
|
760
760
|
};
|
|
761
761
|
const handleSecondChange = (value) => {
|
|
762
762
|
if (props.onChange) {
|
|
763
|
-
const filterOption2 = props.options
|
|
763
|
+
const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
|
|
764
764
|
console.log("filterOption2--------", filterOption2);
|
|
765
|
-
setSelectedValue((prev) => ({ ...prev, secondValue: filterOption2
|
|
766
|
-
props.onChange(selectedValue
|
|
765
|
+
setSelectedValue((prev) => ({ ...prev, secondValue: filterOption2 }));
|
|
766
|
+
props.onChange(selectedValue);
|
|
767
767
|
}
|
|
768
768
|
};
|
|
769
769
|
return /* @__PURE__ */ React25.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ React25.createElement(
|