multiselect-combo-box
Advanced tools
Comparing version 2.4.0-alpha.1 to 2.4.0-alpha.2
@@ -15,3 +15,3 @@ { | ||
"name": "multiselect-combo-box", | ||
"version": "2.4.0-alpha.1", | ||
"version": "2.4.0-alpha.2", | ||
"main": "multiselect-combo-box.js", | ||
@@ -18,0 +18,0 @@ "directories": { |
@@ -327,7 +327,8 @@ import {PolymerElement} from '@polymer/polymer/polymer-element.js'; | ||
const item = selectedItem || this.$.comboBox.selectedItem; | ||
if (!item) { | ||
return; | ||
} | ||
const update = this.selectedItems.slice(0); | ||
const index = this._findIndex(item, this.selectedItems, this.itemIdPath); | ||
if (index !== -1) { | ||
@@ -378,3 +379,3 @@ update.splice(index, 1); | ||
for (let index = 0; index < selectedItems.length; index++) { | ||
if (selectedItems[index][itemIdPath] === item[itemIdPath]) { | ||
if (selectedItems[index] && selectedItems[index][itemIdPath] === item[itemIdPath]) { | ||
return index; | ||
@@ -381,0 +382,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54638
1094