multiselect-combo-box
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -15,3 +15,3 @@ { | ||
"name": "multiselect-combo-box", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"main": "multiselect-combo-box.js", | ||
@@ -18,0 +18,0 @@ "directories": { |
@@ -425,5 +425,17 @@ import {PolymerElement} from '@polymer/polymer/polymer-element.js'; | ||
this._comboBoxValueChanged(event, event.detail.item); | ||
// When using a data provider, i.e. in the flow wrapper, | ||
// we close the overlay after a selection is made and if | ||
// a filter is present. This is to ensure that the overlay | ||
// does not immediatelly re-open with the initial items page | ||
if (this._hasDataProvider() && this.$.comboBox.filter) { | ||
this.$.comboBox.close(); | ||
} | ||
} | ||
} | ||
_hasDataProvider() { | ||
return this.$.comboBox.dataProvider && typeof this.$.comboBox.dataProvider === 'function'; | ||
} | ||
_setTemplateFromNodes(nodes) { | ||
@@ -430,0 +442,0 @@ this._itemTemplate = nodes.filter(node => node.localName && node.localName === 'template')[0] || this._itemTemplate; |
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
53473
1059