We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 082ed22 commit a8b9248Copy full SHA for a8b9248
src/app/modules/angular-slickgrid/editors/autoCompleteEditor.ts
@@ -174,7 +174,7 @@ export class AutoCompleteEditor implements Editor {
174
const data = (isComplexObject) ? getDescendantProperty(item, fieldName) : item[fieldName];
175
176
this._currentValue = data;
177
- this._defaultTextValue = typeof data === 'string' ? data : data[this.labelName];
+ this._defaultTextValue = typeof data === 'string' ? data : (data && data.hasOwnProperty(this.labelName) && data[this.labelName] || '');
178
this._$editorElm.val(this._defaultTextValue);
179
this._$editorElm.select();
180
}
0 commit comments