@progress/kendo-angular-dropdowns
Advanced tools
Comparing version 0.20.0 to 0.20.1
@@ -276,3 +276,2 @@ /* tslint:disable:no-null-keyword */ | ||
} | ||
this.selectionChange.emit(this.data[index]); | ||
this.change(this.data[index]); | ||
@@ -285,6 +284,8 @@ }; | ||
} | ||
this.selectionChange.emit(this.data[index]); | ||
if (!this.open) { | ||
this.change(this.data[index]); | ||
} | ||
else { | ||
this.selectionChange.emit(this.data[index]); | ||
} | ||
}; | ||
@@ -511,2 +512,3 @@ ComboBoxComponent.prototype.ngOnDestroy = function () { | ||
this._previousValue = this.value; | ||
this.selectionChange.emit(this.value); | ||
this.onChangeCallback(this.value); | ||
@@ -513,0 +515,0 @@ this.valueChange.emit(this.value); |
@@ -353,3 +353,2 @@ /* tslint:disable:max-line-length */ | ||
var dataItem = isPresent(this.data[index]) ? this.data[index] : this.defaultItem; | ||
this.selectionChange.emit(dataItem); | ||
this.change(dataItem); | ||
@@ -369,3 +368,2 @@ }; | ||
else { | ||
this.selectionChange.emit(dataItem); | ||
this.change(dataItem); | ||
@@ -463,3 +461,3 @@ } | ||
DropDownListComponent.prototype.componentBlur = function () { | ||
if (this._previousValue !== this.value) { | ||
if (Util.getter(this._previousValue, this.valueField) !== Util.getter(this.value, this.valueField)) { | ||
this.change(this.value); | ||
@@ -533,3 +531,3 @@ } | ||
this.open = false; | ||
if (this._previousValue === Util.getter(dataItem, this.valueField)) { | ||
if (Util.getter(this._previousValue, this.valueField) === Util.getter(dataItem, this.valueField)) { | ||
return; | ||
@@ -541,2 +539,3 @@ } | ||
this._previousValue = this.value; | ||
this.selectionChange.emit(this.valuePrimitive ? primitiveValue : this.value); | ||
this.onChangeCallback(this.valuePrimitive ? primitiveValue : this.value); | ||
@@ -543,0 +542,0 @@ this.valueChange.emit(this.valuePrimitive ? primitiveValue : this.value); |
@@ -277,3 +277,2 @@ /* tslint:disable:no-null-keyword */ | ||
} | ||
this.selectionChange.emit(this.data[index]); | ||
this.change(this.data[index]); | ||
@@ -286,6 +285,8 @@ }; | ||
} | ||
this.selectionChange.emit(this.data[index]); | ||
if (!this.open) { | ||
this.change(this.data[index]); | ||
} | ||
else { | ||
this.selectionChange.emit(this.data[index]); | ||
} | ||
}; | ||
@@ -512,2 +513,3 @@ ComboBoxComponent.prototype.ngOnDestroy = function () { | ||
this._previousValue = this.value; | ||
this.selectionChange.emit(this.value); | ||
this.onChangeCallback(this.value); | ||
@@ -514,0 +516,0 @@ this.valueChange.emit(this.value); |
@@ -354,3 +354,2 @@ /* tslint:disable:max-line-length */ | ||
var dataItem = util_1.isPresent(this.data[index]) ? this.data[index] : this.defaultItem; | ||
this.selectionChange.emit(dataItem); | ||
this.change(dataItem); | ||
@@ -370,3 +369,2 @@ }; | ||
else { | ||
this.selectionChange.emit(dataItem); | ||
this.change(dataItem); | ||
@@ -464,3 +462,3 @@ } | ||
DropDownListComponent.prototype.componentBlur = function () { | ||
if (this._previousValue !== this.value) { | ||
if (kendo_dropdowns_common_1.DropDownsUtil.getter(this._previousValue, this.valueField) !== kendo_dropdowns_common_1.DropDownsUtil.getter(this.value, this.valueField)) { | ||
this.change(this.value); | ||
@@ -534,3 +532,3 @@ } | ||
this.open = false; | ||
if (this._previousValue === kendo_dropdowns_common_1.DropDownsUtil.getter(dataItem, this.valueField)) { | ||
if (kendo_dropdowns_common_1.DropDownsUtil.getter(this._previousValue, this.valueField) === kendo_dropdowns_common_1.DropDownsUtil.getter(dataItem, this.valueField)) { | ||
return; | ||
@@ -542,2 +540,3 @@ } | ||
this._previousValue = this.value; | ||
this.selectionChange.emit(this.valuePrimitive ? primitiveValue : this.value); | ||
this.onChangeCallback(this.valuePrimitive ? primitiveValue : this.value); | ||
@@ -544,0 +543,0 @@ this.valueChange.emit(this.valuePrimitive ? primitiveValue : this.value); |
{ | ||
"name": "@progress/kendo-angular-dropdowns", | ||
"description": "Dropdowns Package for Angular 2", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"publishConfig": { | ||
@@ -6,0 +6,0 @@ "registry": "https://registry.npm.telerik.com" |
Sorry, the diff of this file is too big to display
422656
6714