Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3103)

Unified Diff: chrome/browser/resources/md_downloads/toolbar.js

Issue 2167383003: MD Downloads: simplify how we detect focus changes that close the "More actions..." menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@roll-polymer2
Patch Set: merge Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/toolbar.js
diff --git a/chrome/browser/resources/md_downloads/toolbar.js b/chrome/browser/resources/md_downloads/toolbar.js
index b4c0527844355c5861cdb2fdb528ac9d22b12250..11b556effaca4df6d31a3fe0dc24b2cec412cc12 100644
--- a/chrome/browser/resources/md_downloads/toolbar.js
+++ b/chrome/browser/resources/md_downloads/toolbar.js
@@ -74,11 +74,9 @@ cr.define('downloads', function() {
if (menu.items.indexOf(e.relatedTarget) >= 0)
return;
- // This can be this.$.more.restoreFocusOnClose = false when this lands:
- // https://github.com/PolymerElements/paper-menu-button/pull/94
- this.$.more.$.dropdown.restoreFocusOnClose = false;
+ this.$.more.restoreFocusOnClose = false;
this.closeMoreActions_();
- this.$.more.$.dropdown.restoreFocusOnClose = true;
+ this.$.more.restoreFocusOnClose = true;
},
/** @private */
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698