Commit 23333545 authored by Denis Kuznetsov's avatar Denis Kuznetsov Committed by Commit Bot

Reorder changing visibility of the screen and focusing default element.

Bug: 1021608
Change-Id: I7086c7086f2a8e8978f4034c002115e1328e6ebe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1899998Reviewed-by: default avatarRoman Aleksandrov <raleksandrov@google.com>
Commit-Queue: Denis Kuznetsov [CET] <antrim@chromium.org>
Cr-Commit-Position: refs/heads/master@{#712972}
parent 7d0166c2
......@@ -397,6 +397,9 @@ Polymer({
this.isCancelDisabled =
(step == ENROLLMENT_STEP.SIGNIN && !this.isManualEnrollment_) ||
step == ENROLLMENT_STEP.AD_JOIN || step == ENROLLMENT_STEP.WORKING;
this.currentStep_ = step;
if (this.isErrorStep_(step)) {
this.$['oauth-enroll-error-card'].submitButton.focus();
} else if (step == ENROLLMENT_STEP.SIGNIN) {
......@@ -413,7 +416,6 @@ Polymer({
this.offlineAdUi_.focus();
}
this.currentStep_ = step;
this.lastBackMessageValue_ = false;
this.updateControlsState();
},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment