Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Proper focus input field instead of whole pod
Browse files Browse the repository at this point in the history
This CL fixes focus regression introduced in https://codereview.chromium.org/908033005

BUG=450465
TEST=manual

Review URL: https://codereview.chromium.org/951783003

Cr-Commit-Position: refs/heads/master@{#317777}
(cherry picked from commit 2672bd9)

Review URL: https://codereview.chromium.org/962523004

Cr-Commit-Position: refs/branch-heads/2311@{#34}
Cr-Branched-From: 09b7de5-refs/heads/master@{#317474}
  • Loading branch information
dpolukhin committed Feb 26, 2015
1 parent 1237422 commit a9e2fbc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/login/account_picker/user_pod_row.js
Original file line number Diff line number Diff line change
Expand Up @@ -2770,9 +2770,13 @@ cr.define('login', function() {
if (podToFocus) {
podToFocus.classList.remove('faded');
podToFocus.classList.add('focused');
if (podToFocus.multiProfilesPolicyApplied)
if (!podToFocus.multiProfilesPolicyApplied) {
podToFocus.classList.toggle('signing-in', false);
podToFocus.focusInput();
} else {
podToFocus.userTypeBubbleElement.classList.add('bubble-shown');
podToFocus.focus();
podToFocus.focus();
}

// focusPod() automatically loads wallpaper
if (!podToFocus.user.isApp)
Expand Down

0 comments on commit a9e2fbc

Please sign in to comment.