@linzjs/lui 16.3.0 → 16.4.0
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/lui.esm.js
CHANGED
|
@@ -1320,7 +1320,9 @@ var LuiBearingInput = function (props) {
|
|
|
1320
1320
|
}
|
|
1321
1321
|
var parsedBearing = parseBearing(props.value);
|
|
1322
1322
|
var internalError = validateBearing(parsedBearing);
|
|
1323
|
-
var error =
|
|
1323
|
+
var error = props.preferValidationError
|
|
1324
|
+
? props.validationError || internalError || null
|
|
1325
|
+
: internalError || props.validationError || null;
|
|
1324
1326
|
var showError = error !== null;
|
|
1325
1327
|
props.onValidate && props.onValidate(internalError);
|
|
1326
1328
|
return (React__default.createElement(React__default.Fragment, null,
|