@oliasoft-open-source/react-ui-library 10.7.0-beta-5 → 10.7.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 +2 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5219,12 +5219,9 @@ var UnitInput = ({ name, placeholder = "", disabled = false, disabledUnit = fals
|
|
|
5219
5219
|
defaultFromUnit: propUnit,
|
|
5220
5220
|
doNotConvertValue: noConversion
|
|
5221
5221
|
});
|
|
5222
|
-
const [displayLayer, setDisplayLayer] = useState(
|
|
5223
|
-
value: convertedValue,
|
|
5222
|
+
const [displayLayer, setDisplayLayer] = useState({
|
|
5223
|
+
value: convertedValue !== "" ? convertedValue : propValue,
|
|
5224
5224
|
unit: initDisplayUnit
|
|
5225
|
-
} : {
|
|
5226
|
-
value: propValue,
|
|
5227
|
-
unit: propUnit
|
|
5228
5225
|
});
|
|
5229
5226
|
const derivedAllowEmpty = allowEmpty || (displayLayer === null || displayLayer === void 0 ? void 0 : displayLayer.value) === void 0;
|
|
5230
5227
|
const [predefinedOptionsMenuState, setPredefinedOptionsMenuState] = useState(initialPredefinedOption ? PredefinedOptionsMenuState.PREDEFINED : PredefinedOptionsMenuState.CUSTOM);
|
package/package.json
CHANGED