Fixed an issue where passwords entered in the 'Connect To Server' dialog were truncated. Fixes #7440

This commit is contained in:
Nikhil Mohite
2022-06-22 17:35:22 +05:30
committed by Akshay Joshi
parent 93bc1f3c57
commit d90b2621da
6 changed files with 18 additions and 8 deletions

View File

@@ -326,7 +326,9 @@ FormInputDateTimePicker.propTypes = {
/* Use forwardRef to pass ref prop to OutlinedInput */
export const InputText = forwardRef(({
cid, helpid, readonly, disabled, maxlength = 255, value, onChange, controlProps, type, ...props }, ref) => {
cid, helpid, readonly, disabled, value, onChange, controlProps, type, ...props }, ref) => {
const maxlength = typeof(controlProps?.maxLength) != 'undefined' ? controlProps.maxLength : 255;
const classes = useStyles();
const patterns = {
@@ -388,7 +390,6 @@ InputText.propTypes = {
label: PropTypes.string,
readonly: PropTypes.bool,
disabled: PropTypes.bool,
maxlength: PropTypes.number,
value: PropTypes.any,
onChange: PropTypes.func,
controlProps: PropTypes.object,