| Index: third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js
|
| diff --git a/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js b/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js
|
| index cfdf031fc0d74323d92f7b343795943d235baedb..e8b03e9e97eadee3c144ba4288ea6b96e92832d2 100644
|
| --- a/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js
|
| +++ b/third_party/polymer/v1_0/components-chromium/iron-menu-behavior/iron-menu-behavior-extracted.js
|
| @@ -61,6 +61,8 @@
|
| * @param {string|number} value the value to select.
|
| */
|
| select: function(value) {
|
| + // Cancel automatically focusing a default item if the menu received focus
|
| + // through a user action selecting a particular item.
|
| if (this._defaultFocusAsync) {
|
| this.cancelAsync(this._defaultFocusAsync);
|
| this._defaultFocusAsync = null;
|
| @@ -231,8 +233,6 @@
|
| return;
|
| }
|
|
|
| - this.blur();
|
| -
|
| // clear the cached focus item
|
| this._defaultFocusAsync = this.async(function() {
|
| // focus the selected item when the menu receives focus, or the first item
|
| @@ -243,11 +243,10 @@
|
|
|
| if (selectedItem) {
|
| this._setFocusedItem(selectedItem);
|
| - } else {
|
| + } else if (this.items[0]) {
|
| this._setFocusedItem(this.items[0]);
|
| }
|
| - // async 1ms to wait for `select` to get called from `_itemActivate`
|
| - }, 1);
|
| + });
|
| },
|
|
|
| /**
|
|
|