Stability and bug fixes for the react schema view framework.

This commit is contained in:
Aditya Toshniwal
2021-09-01 17:20:37 +05:30
committed by Akshay Joshi
parent 74cec6594e
commit f7b8969c72
5 changed files with 24 additions and 41 deletions

View File

@@ -314,6 +314,7 @@ export const InputText = forwardRef(({
};
let finalValue = (_.isNull(value) || _.isUndefined(value)) ? '' : value;
if(controlProps?.formatter) {
finalValue = controlProps.formatter.fromRaw(finalValue);
}
@@ -350,7 +351,7 @@ InputText.propTypes = {
readonly: PropTypes.bool,
disabled: PropTypes.bool,
maxlength: PropTypes.number,
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
value: PropTypes.any,
onChange: PropTypes.func,
controlProps: PropTypes.object,
type: PropTypes.string,