@oliasoft-open-source/react-ui-library 4.13.0-beta-5 → 4.13.0-beta-6

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
@@ -70571,18 +70571,18 @@ const UnitInput = ({
70571
70571
  predefinedOptions,
70572
70572
  displayLayer,
70573
70573
  onPredefinedOptionSelect: (newValue, option2) => {
70574
- if (!(option2 == null ? void 0 : option2.linked)) {
70575
- onChange({
70576
- target: {
70577
- value: newValue,
70578
- name: stringName
70579
- }
70580
- });
70581
- setDisplayLayer({
70574
+ onChange({
70575
+ target: {
70582
70576
  value: newValue,
70583
- unit: getUnit(newValue) || displayLayer.unit
70584
- });
70585
- }
70577
+ name: stringName,
70578
+ predefinedSelected: true,
70579
+ predefinedOption: option2
70580
+ }
70581
+ });
70582
+ setDisplayLayer({
70583
+ value: newValue,
70584
+ unit: getUnit(newValue) || displayLayer.unit
70585
+ });
70586
70586
  },
70587
70587
  disabled: disabled2,
70588
70588
  initialPredefinedOption,