Skip to content

Commit

Permalink
Login: Fix Safari autozoom (#97374)
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero authored and timur987 committed Dec 13, 2024
1 parent c09aecd commit 1ef38c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/blocks/login/login-form.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class LoginForm extends Component {

// eslint-disable-next-line react/no-did-mount-set-state
this.setState( { isFormDisabledWhileLoading: false }, () => {
! disableAutoFocus && this.usernameOrEmail && this.usernameOrEmail.focus();
! disableAutoFocus && defer( () => this.usernameOrEmail && this.usernameOrEmail.focus() );
} );
// Remove url param to keep the last used login consistent upon refresh
const url = new URL( window.location );
Expand Down
2 changes: 1 addition & 1 deletion client/login/wp-login/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ $image-height: 47px;
height: 44px;
border-radius: 4px;
border: 1px solid var(--studio-gray-10);
font-size: $font-body-small;
font-size: $font-body;

&[disabled],
&:disabled,
Expand Down

0 comments on commit 1ef38c8

Please sign in to comment.