Fix Bug 69733 - [LDAP] No option to validate entered data in Password field when configuring LDAP
This commit is contained in:
parent
88b091f7ee
commit
0e460bf1f0
@ -177,7 +177,7 @@ const PasswordInput = React.forwardRef(
|
|||||||
[onKeyDown],
|
[onKeyDown],
|
||||||
);
|
);
|
||||||
|
|
||||||
const changeInputType = () => {
|
const changeInputType = React.useCallback(() => {
|
||||||
const newType =
|
const newType =
|
||||||
state.type === InputType.text ? InputType.password : InputType.text;
|
state.type === InputType.text ? InputType.password : InputType.text;
|
||||||
|
|
||||||
@ -185,7 +185,13 @@ const PasswordInput = React.forwardRef(
|
|||||||
...s,
|
...s,
|
||||||
type: newType,
|
type: newType,
|
||||||
}));
|
}));
|
||||||
};
|
}, [state.type]);
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (isDisabled && state.type === InputType.text) {
|
||||||
|
changeInputType();
|
||||||
|
}
|
||||||
|
}, [isDisabled, changeInputType, state.type]);
|
||||||
|
|
||||||
const testStrength = useCallback(
|
const testStrength = useCallback(
|
||||||
(value: string) => {
|
(value: string) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user