Commit b6493fbb authored by Kuo Jen Wei's avatar Kuo Jen Wei Committed by Commit Bot

[CCA] Fix nested settings not leave by clicking background.

Bug: 1029935
Test: Clicking background of inner nested setting view jump out of all
other setting view.

Change-Id: I52bd98e1c38af34b0dd014bf91c9710e4c6f6d62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949842
Auto-Submit: Kuo Jen Wei <inker@chromium.org>
Reviewed-by: default avatarShik Chen <shik@chromium.org>
Commit-Queue: Kuo Jen Wei <inker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721853}
parent 50c5c332
...@@ -80,7 +80,7 @@ cca.views.BaseSettings.prototype.focus = function() { ...@@ -80,7 +80,7 @@ cca.views.BaseSettings.prototype.focus = function() {
*/ */
cca.views.BaseSettings.prototype.openSubSettings = function(id) { cca.views.BaseSettings.prototype.openSubSettings = function(id) {
// Dismiss master-settings if sub-settings was dimissed by background click. // Dismiss master-settings if sub-settings was dimissed by background click.
cca.nav.open(id).then((cond) => cond && cond.bkgnd && this.leave()); cca.nav.open(id).then((cond) => cond && cond.bkgnd && this.leave(cond));
}; };
/** /**
......
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