@oliasoft-open-source/react-ui-library 10.6.3 → 10.6.4-beta-1
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 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5162,12 +5162,9 @@ var UnitInput = ({ name, placeholder = "", disabled = false, disabledUnit = fals
|
|
|
5162
5162
|
defaultFromUnit: propUnit,
|
|
5163
5163
|
doNotConvertValue: noConversion
|
|
5164
5164
|
});
|
|
5165
|
-
const [displayLayer, setDisplayLayer] = useState(
|
|
5166
|
-
value: convertedValue,
|
|
5165
|
+
const [displayLayer, setDisplayLayer] = useState({
|
|
5166
|
+
value: convertedValue !== "" ? convertedValue : propValue,
|
|
5167
5167
|
unit: initDisplayUnit
|
|
5168
|
-
} : {
|
|
5169
|
-
value: propValue,
|
|
5170
|
-
unit: propUnit
|
|
5171
5168
|
});
|
|
5172
5169
|
const derivedAllowEmpty = allowEmpty || (displayLayer === null || displayLayer === void 0 ? void 0 : displayLayer.value) === void 0;
|
|
5173
5170
|
const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = useState(initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
|
package/package.json
CHANGED