@syncfusion/ej2-dropdowns 31.1.23 → 31.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1544,9 +1544,9 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1544
1544
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
1545
1545
  var option = options_1[_i];
1546
1546
  var json = {};
1547
- json[fields.text] = option.innerHTML;
1547
+ json[fields.text] = option.text;
1548
1548
  json[fields.value] = !isNullOrUndefined(option.getAttribute(fields.value)) ?
1549
- option.getAttribute(fields.value) : option.innerHTML;
1549
+ option.getAttribute(fields.value) : option.value;
1550
1550
  if (!isNullOrUndefined(category)) {
1551
1551
  json[fields.groupBy] = category;
1552
1552
  }
@@ -2069,7 +2069,7 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
2069
2069
  var data = this.sortOrder !== 'None' ? !isNullOrUndefined(this.fields.groupBy) ?
2070
2070
  this.sortedData.filter(function (item) { return !('isHeader' in item) || item.isHeader !== true; }) : this.sortedData : this.listData;
2071
2071
  for (var index = 0; index < liCollections.length; index++) {
2072
- if (JSON.parse(JSON.stringify(data[index]))[this.fields.disabled]) {
2072
+ if (data[index] && JSON.parse(JSON.stringify(data[index]))[this.fields.disabled]) {
2073
2073
  if (!isNullOrUndefined(this.fields.groupBy)) {
2074
2074
  var item = data[index];
2075
2075
  var value = getValue((this.fields.value ? this.fields.value : 'value'), item);
@@ -5209,7 +5209,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5209
5209
  this.isRequesting = false;
5210
5210
  var eventArgs = {
5211
5211
  preventDefaultAction: false,
5212
- text: this.filterInput.value,
5212
+ text: this.filterInput ? this.filterInput.value : '',
5213
5213
  updateData: function (dataSource, query, fields) {
5214
5214
  if (eventArgs.cancel) {
5215
5215
  return;
@@ -21047,7 +21047,7 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
21047
21047
  var targetListObj = this.getComponent(args.target);
21048
21048
  if (targetListObj && targetListObj.listData.length === 0) {
21049
21049
  var noRecElem = targetListObj.ulElement.childNodes[0];
21050
- if (noRecElem) {
21050
+ if (noRecElem && targetListObj.allowDragAndDrop) {
21051
21051
  targetListObj.ulElement.removeChild(noRecElem);
21052
21052
  }
21053
21053
  }