fix password focus, bump version to -beta3

This commit is contained in:
or-else
2022-07-15 11:41:51 -07:00
parent 7dfb90d8f3
commit 6357f9227e
12 changed files with 2311 additions and 1960 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
// This is a generated file. Don't edit.
export const PACKAGE_VERSION = "0.20.0-beta2";
export const PACKAGE_VERSION = "0.20.0-beta3";
-2
View File
@@ -5,8 +5,6 @@ import { FormattedMessage } from 'react-intl';
import CheckBox from '../widgets/checkbox.jsx';
import VisiblePassword from '../widgets/visible-password.jsx';
import LocalStorageUtil from '../lib/local-storage.js';
export default class LoginView extends React.Component {
constructor(props) {
super(props);
+3 -1
View File
@@ -19,7 +19,9 @@ export default class VisiblePassword extends React.PureComponent {
}
componentDidMount() {
this.inputRef.current.focus();
if (this.props.autoFocus) {
this.inputRef.current.focus();
}
}
handeTextChange(e) {