@apexcura/ui-components 0.0.13-Beta88 → 0.0.13-Beta89

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 CHANGED
@@ -812,8 +812,8 @@ var DropDownGroup = (props) => {
812
812
  const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
813
813
  setSelectedValue((prev) => {
814
814
  const newValue = { ...prev, firstValue: filterOption2 };
815
- if (props.onChange) {
816
- props.onChange(newValue);
815
+ if (newValue.firstValue) {
816
+ props.onChange?.(newValue);
817
817
  }
818
818
  return newValue;
819
819
  });
@@ -822,8 +822,8 @@ var DropDownGroup = (props) => {
822
822
  const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
823
823
  setSelectedValue((prev) => {
824
824
  const newValue = { ...prev, secondValue: filterOption2 };
825
- if (props.onChange) {
826
- props.onChange(newValue);
825
+ if (newValue.secondValue) {
826
+ props.onChange?.(newValue);
827
827
  }
828
828
  return newValue;
829
829
  });
package/dist/index.mjs CHANGED
@@ -755,8 +755,8 @@ var DropDownGroup = (props) => {
755
755
  const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
756
756
  setSelectedValue((prev) => {
757
757
  const newValue = { ...prev, firstValue: filterOption2 };
758
- if (props.onChange) {
759
- props.onChange(newValue);
758
+ if (newValue.firstValue) {
759
+ props.onChange?.(newValue);
760
760
  }
761
761
  return newValue;
762
762
  });
@@ -765,8 +765,8 @@ var DropDownGroup = (props) => {
765
765
  const filterOption2 = props.options?.find((eachOption) => eachOption.value === value);
766
766
  setSelectedValue((prev) => {
767
767
  const newValue = { ...prev, secondValue: filterOption2 };
768
- if (props.onChange) {
769
- props.onChange(newValue);
768
+ if (newValue.secondValue) {
769
+ props.onChange?.(newValue);
770
770
  }
771
771
  return newValue;
772
772
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.13-Beta88",
3
+ "version": "0.0.13-Beta89",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",