mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
feat: fix bug that the password input disappears in login window (#2051)
Signed-off-by: baihhh <2542274498@qq.com>
This commit is contained in:
@ -82,6 +82,10 @@ class LoginPage extends React.Component {
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps, prevState, snapshot) {
|
||||
if (prevState.loginMethod === undefined && this.state.loginMethod === undefined) {
|
||||
const application = this.getApplicationObj();
|
||||
this.setState({loginMethod: this.getDefaultLoginMethod(application)});
|
||||
}
|
||||
if (prevProps.application !== this.props.application) {
|
||||
this.setState({loginMethod: this.getDefaultLoginMethod(this.props.application)});
|
||||
|
||||
|
Reference in New Issue
Block a user