Commit f6194e36 authored by dbeam's avatar dbeam Committed by Commit bot

MD Downloads: simplify how we detect focus changes that close the "More actions..." menu

R=michaelpg@chromium.org
BUG=none
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
NOPRESUBMIT=true  # crisper.js

Review-Url: https://codereview.chromium.org/2167383003
Cr-Commit-Position: refs/heads/master@{#407701}
parent 3fca2b4f
...@@ -11731,11 +11731,9 @@ cr.define('downloads', function() { ...@@ -11731,11 +11731,9 @@ cr.define('downloads', function() {
if (menu.items.indexOf(e.relatedTarget) >= 0) if (menu.items.indexOf(e.relatedTarget) >= 0)
return; return;
// This can be this.$.more.restoreFocusOnClose = false when this lands: this.$.more.restoreFocusOnClose = false;
// https://github.com/PolymerElements/paper-menu-button/pull/94
this.$.more.$.dropdown.restoreFocusOnClose = false;
this.closeMoreActions_(); this.closeMoreActions_();
this.$.more.$.dropdown.restoreFocusOnClose = true; this.$.more.restoreFocusOnClose = true;
}, },
/** @private */ /** @private */
......
...@@ -74,11 +74,9 @@ cr.define('downloads', function() { ...@@ -74,11 +74,9 @@ cr.define('downloads', function() {
if (menu.items.indexOf(e.relatedTarget) >= 0) if (menu.items.indexOf(e.relatedTarget) >= 0)
return; return;
// This can be this.$.more.restoreFocusOnClose = false when this lands: this.$.more.restoreFocusOnClose = false;
// https://github.com/PolymerElements/paper-menu-button/pull/94
this.$.more.$.dropdown.restoreFocusOnClose = false;
this.closeMoreActions_(); this.closeMoreActions_();
this.$.more.$.dropdown.restoreFocusOnClose = true; this.$.more.restoreFocusOnClose = true;
}, },
/** @private */ /** @private */
......
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