Skip to content

Commit dbe9259

Browse files
committed
fix(combobox): Cannot select Item with value 0 in ComboBox and DropdownList #3029
1 parent 370d1e5 commit dbe9259

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/kendo.combobox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ var __meta__ = { // jshint ignore:line
538538

539539
this.listView.focus(-1);
540540
} else {
541-
if (dataItem) {
541+
if (dataItem || dataItem === 0) {
542542
value = this._dataValue(dataItem);
543543
text = this._text(dataItem);
544544
}

src/kendo.dropdownlist.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ var __meta__ = { // jshint ignore:line
11031103

11041104
this._resetOptionLabel(" k-state-selected");
11051105

1106-
if (dataItem) {
1106+
if (dataItem || dataItem === 0) {
11071107
text = dataItem;
11081108
value = that._dataValue(dataItem);
11091109
if (optionLabel) {

0 commit comments

Comments
 (0)