forked from Ivasoft/mattermost-mobile
Fix login form theming and fields tracking (#5838)
This commit is contained in:
@@ -246,7 +246,7 @@ const LoginForm = ({config, extra, keyboardAwareRef, numberSSOs, serverDisplayNa
|
||||
const onLogin = useCallback(() => {
|
||||
Keyboard.dismiss();
|
||||
preSignIn();
|
||||
}, [loginId, password]);
|
||||
}, [loginId, password, theme]);
|
||||
|
||||
const onLoginChange = useCallback((text) => {
|
||||
setLoginId(text);
|
||||
@@ -326,7 +326,7 @@ const LoginForm = ({config, extra, keyboardAwareRef, numberSSOs, serverDisplayNa
|
||||
/>
|
||||
</Button>
|
||||
);
|
||||
}, [buttonDisabled, isLoading, theme]);
|
||||
}, [buttonDisabled, loginId, password, isLoading, theme]);
|
||||
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
|
||||
@@ -121,7 +121,7 @@ const ServerForm = ({
|
||||
const onConnect = useCallback(() => {
|
||||
Keyboard.dismiss();
|
||||
handleConnect();
|
||||
}, [buttonDisabled, connecting]);
|
||||
}, [buttonDisabled, connecting, theme]);
|
||||
|
||||
const onFocus = useCallback(() => {
|
||||
focus();
|
||||
|
||||
Reference in New Issue
Block a user