@vaadin/vaadin-select
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -13,3 +13,3 @@ { | ||
"name": "@vaadin/vaadin-select", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"main": "vaadin-select.js", | ||
@@ -54,5 +54,5 @@ "author": "Vaadin Ltd", | ||
"wct-browser-legacy": "^1.0.1", | ||
"@vaadin/vaadin-demo-helpers": "^2.2.0", | ||
"@vaadin/vaadin-demo-helpers": "^3.0.0", | ||
"@vaadin/vaadin-button": "^2.1.0" | ||
} | ||
} |
@@ -182,3 +182,3 @@ /** | ||
static get version() { | ||
return '2.1.1'; | ||
return '2.1.2'; | ||
} | ||
@@ -421,3 +421,6 @@ | ||
this._menuElement.addEventListener('keydown', e => this._onKeyDownInside(e)); | ||
this._menuElement.addEventListener('click', e => this.opened = false); | ||
this._menuElement.addEventListener('click', e => { | ||
this.__userInteraction = true; | ||
this.opened = false; | ||
}, true); | ||
} | ||
@@ -479,2 +482,3 @@ } | ||
if (newIdx >= 0) { | ||
this.__userInteraction = true; | ||
this._updateSelectedItem(this._items[newIdx].value, this._items); | ||
@@ -585,2 +589,6 @@ } | ||
this.value = selected.value || ''; | ||
if (this.__userInteraction) { | ||
this.dispatchEvent(new CustomEvent('change', {bubbles: true})); | ||
this.__userInteraction = false; | ||
} | ||
delete this._selectedChanging; | ||
@@ -638,2 +646,8 @@ } | ||
} | ||
/** | ||
* Fired when the user commits a value change. | ||
* | ||
* @event change | ||
*/ | ||
} | ||
@@ -640,0 +654,0 @@ |
47069
802