Commit 02898578 authored by Scott Chen's avatar Scott Chen Committed by Commit Bot

WebUI: Update Polymer iron-list 2.0.14 -> 2.0.15.

Bug: 836117
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I933a083f489d24c5ba4ff65636906b36f80f66dd
Reviewed-on: https://chromium-review.googlesource.com/1054706Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: Scott Chen <scottchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#557756}
parent b4b36270
......@@ -18,7 +18,7 @@
"iron-iconset-svg": "PolymerElements/iron-iconset-svg#2.1.1",
"iron-icons": "PolymerElements/iron-icons#2.0.1",
"iron-input": "PolymerElements/iron-input#2.1.3",
"iron-list": "PolymerElements/iron-list#2.0.14",
"iron-list": "PolymerElements/iron-list#2.0.15",
"iron-location": "PolymerElements/iron-location#2.0.3",
"iron-media-query": "PolymerElements/iron-media-query#2.0.0",
"iron-menu-behavior": "PolymerElements/iron-menu-behavior#2.0.1",
......
......@@ -7,7 +7,7 @@
"list",
"virtual-list"
],
"version": "2.0.14",
"version": "2.0.15",
"homepage": "https://github.com/PolymerElements/iron-list",
"authors": [
"The Polymer Authors"
......
......@@ -829,9 +829,17 @@
} else if (change.path === 'items.splices') {
this._adjustVirtualIndex(change.value.indexSplices);
this._virtualCount = this.items ? this.items.length : 0;
// Only blur activeElement if it is a descendant of the list (#505, #507).
var activeElement = this._getActiveElement();
if (this.contains(activeElement)) activeElement.blur();
// Only blur if at least one item is added or removed.
var itemAddedOrRemoved = change.value.indexSplices.some(function(splice) {
return splice.addedCount > 0 || splice.removed.length > 0;
});
if (itemAddedOrRemoved) {
// Only blur activeElement if it is a descendant of the list (#505, #507).
var activeElement = this._getActiveElement();
if (this.contains(activeElement)) {
activeElement.blur();
}
}
// Render only if the affected index is rendered.
var affectedIndexRendered = change.value.indexSplices.some(function(splice) {
return splice.index + splice.addedCount >= this._virtualStart &&
......
......@@ -96,9 +96,9 @@ Tree link: https://github.com/PolymerElements/iron-input/tree/v2.1.3
Name: iron-list
Repository: https://github.com/PolymerElements/iron-list.git
Tree: v2.0.14
Revision: 2289099da9cbb9ed593350de0192b7b5e36aed9e
Tree link: https://github.com/PolymerElements/iron-list/tree/v2.0.14
Tree: v2.0.15
Revision: c2a527538b8842a3543578fe70520f3c336dce1f
Tree link: https://github.com/PolymerElements/iron-list/tree/v2.0.15
Name: iron-location
Repository: https://github.com/PolymerElements/iron-location.git
......@@ -274,12 +274,6 @@ Tree: v2.0.0
Revision: 775a9f019072a58b6a8a936f79450cd01b3b2cba
Tree link: https://github.com/PolymerElements/paper-tabs/tree/v2.0.0
Name: paper-toggle-button
Repository: https://github.com/PolymerElements/paper-toggle-button.git
Tree: v2.0.0
Revision: 8e3113cf203f287180ef08e990c3edf29961083d
Tree link: https://github.com/PolymerElements/paper-toggle-button/tree/v2.0.0
Name: paper-tooltip
Repository: https://github.com/PolymerElements/paper-tooltip.git
Tree: v2.0.0
......
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