From 2672bd90ba63cb8b19e1b44b9512e52f036bd813 Mon Sep 17 00:00:00 2001 From: dpolukhin Date: Tue, 24 Feb 2015 02:39:23 -0800 Subject: [PATCH] Proper focus input field instead of whole pod 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} --- ui/login/account_picker/user_pod_row.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/login/account_picker/user_pod_row.js b/ui/login/account_picker/user_pod_row.js index 8e1da8d1b787..ba3c0365ccef 100644 --- a/ui/login/account_picker/user_pod_row.js +++ b/ui/login/account_picker/user_pod_row.js @@ -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) -- 2.11.4.GIT