Commit 5a513840 authored by tommycli's avatar tommycli Committed by Commit bot

MD Settings: Fix CrOS /help/details edge case for MainPageBehavior.

Without this, an assertion is triggered, since inSearchMode is updated
before the element is attached.

BUG=NONE
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2562153002
Cr-Commit-Position: refs/heads/master@{#438204}
parent 12871d4b
......@@ -66,6 +66,9 @@ var MainPageBehaviorImpl = {
* @private
*/
inSearchModeChanged_: function(inSearchMode) {
if (!this.isAttached)
return;
if (!inSearchMode)
this.tryTransitionToSection_(!settings.lastRouteChangeWasPopstate());
},
......
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