summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/history/other_devices.js
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/resources/history/other_devices.js')
-rw-r--r--chromium/chrome/browser/resources/history/other_devices.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/chrome/browser/resources/history/other_devices.js b/chromium/chrome/browser/resources/history/other_devices.js
index 4ae595dc7aa..2ac6f40dc6f 100644
--- a/chromium/chrome/browser/resources/history/other_devices.js
+++ b/chromium/chrome/browser/resources/history/other_devices.js
@@ -186,7 +186,13 @@ Device.prototype.getDOMNode = function(maxNumTabs, row) {
var dropDownButton = new cr.ui.ContextMenuButton;
dropDownButton.classList.add('drop-down');
- dropDownButton.addEventListener('mousedown', handleDropDownFocus);
+ dropDownButton.addEventListener('mousedown', function(event) {
+ handleDropDownFocus(event);
+ // Mousedown handling of cr.ui.MenuButton.handleEvent calls
+ // preventDefault, which prevents blur of the focused element. We need to
+ // do blur manually.
+ document.activeElement.blur();
+ });
dropDownButton.addEventListener('focus', handleDropDownFocus);
heading.appendChild(dropDownButton);