@oliasoft-open-source/react-ui-library 4.13.0-beta-6 → 4.13.0-beta-7
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 +20 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70571,18 +70571,27 @@ const UnitInput = ({
|
|
|
70571
70571
|
predefinedOptions,
|
|
70572
70572
|
displayLayer,
|
|
70573
70573
|
onPredefinedOptionSelect: (newValue, option2) => {
|
|
70574
|
-
|
|
70575
|
-
|
|
70574
|
+
if (option2 == null ? void 0 : option2.linked) {
|
|
70575
|
+
onChange({
|
|
70576
|
+
target: {
|
|
70577
|
+
value,
|
|
70578
|
+
name: stringName,
|
|
70579
|
+
predefinedSelected: true,
|
|
70580
|
+
predefinedOption: option2
|
|
70581
|
+
}
|
|
70582
|
+
});
|
|
70583
|
+
} else {
|
|
70584
|
+
onChange({
|
|
70585
|
+
target: {
|
|
70586
|
+
value: newValue,
|
|
70587
|
+
name: stringName
|
|
70588
|
+
}
|
|
70589
|
+
});
|
|
70590
|
+
setDisplayLayer({
|
|
70576
70591
|
value: newValue,
|
|
70577
|
-
|
|
70578
|
-
|
|
70579
|
-
|
|
70580
|
-
}
|
|
70581
|
-
});
|
|
70582
|
-
setDisplayLayer({
|
|
70583
|
-
value: newValue,
|
|
70584
|
-
unit: getUnit(newValue) || displayLayer.unit
|
|
70585
|
-
});
|
|
70592
|
+
unit: getUnit(newValue) || displayLayer.unit
|
|
70593
|
+
});
|
|
70594
|
+
}
|
|
70586
70595
|
},
|
|
70587
70596
|
disabled: disabled2,
|
|
70588
70597
|
initialPredefinedOption,
|