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}
  • Loading branch information
dpolukhin authored and Commit bot committed Feb 24, 2015
1 parent 4d4c4b4 commit 2672bd9
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 2672bd9

Please sign in to comment.