@oliasoft-open-source/react-ui-library 4.15.0-beta-1 → 4.15.0-beta-3
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -70319,7 +70319,7 @@ const PredefinedOptionsMenu = ({
|
|
|
70319
70319
|
value,
|
|
70320
70320
|
unit: optionUnitKey
|
|
70321
70321
|
}) => {
|
|
70322
|
-
if (
|
|
70322
|
+
if (isNil(value) || isNil(rootUnitKey)) return value;
|
|
70323
70323
|
if (!isValueWithUnit(value)) return value;
|
|
70324
70324
|
const selectedUnitKey = optionUnitKey || rootUnitKey;
|
|
70325
70325
|
const preferredOptionUnit = getPreferredUnit(selectedUnitKey, unitTemplate);
|
|
@@ -70571,7 +70571,7 @@ const UnitInput = ({
|
|
|
70571
70571
|
newValue = resultValue;
|
|
70572
70572
|
newUnit = displayLayer.unit;
|
|
70573
70573
|
}
|
|
70574
|
-
if (newValue !== void 0 && !initialPredefinedOption) {
|
|
70574
|
+
if (newValue !== void 0 && !(initialPredefinedOption && !predefinedOptionLinked)) {
|
|
70575
70575
|
setDisplayLayer({ value: newValue, unit: newUnit });
|
|
70576
70576
|
}
|
|
70577
70577
|
}
|