@syncfusion/ej2-dropdowns 31.1.22 → 31.2.2

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 31.1.22
3
+ * version : 31.2.2
4
4
  * Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncfusion/ej2-dropdowns",
3
- "version": "31.1.22",
3
+ "version": "31.2.2",
4
4
  "description": "Essential JS 2 DropDown Components",
5
5
  "author": "Syncfusion Inc.",
6
6
  "license": "SEE LICENSE IN license",
@@ -8,13 +8,13 @@
8
8
  "module": "./index.js",
9
9
  "es2015": "./dist/es6/ej2-dropdowns.es5.js",
10
10
  "dependencies": {
11
- "@syncfusion/ej2-base": "~31.1.22",
12
- "@syncfusion/ej2-data": "~31.1.17",
13
- "@syncfusion/ej2-inputs": "~31.1.22",
14
- "@syncfusion/ej2-lists": "~31.1.17",
15
- "@syncfusion/ej2-navigations": "~31.1.20",
16
- "@syncfusion/ej2-notifications": "~31.1.17",
17
- "@syncfusion/ej2-popups": "~31.1.20"
11
+ "@syncfusion/ej2-base": "~31.2.2",
12
+ "@syncfusion/ej2-data": "~31.2.2",
13
+ "@syncfusion/ej2-inputs": "~31.2.2",
14
+ "@syncfusion/ej2-lists": "~31.2.2",
15
+ "@syncfusion/ej2-navigations": "~31.2.2",
16
+ "@syncfusion/ej2-notifications": "~31.2.2",
17
+ "@syncfusion/ej2-popups": "~31.2.2"
18
18
  },
19
19
  "devDependencies": {},
20
20
  "keywords": [
@@ -684,9 +684,9 @@ var DropDownBase = /** @class */ (function (_super) {
684
684
  for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {
685
685
  var option = options_1[_i];
686
686
  var json = {};
687
- json[fields.text] = option.innerHTML;
687
+ json[fields.text] = option.text;
688
688
  json[fields.value] = !isNullOrUndefined(option.getAttribute(fields.value)) ?
689
- option.getAttribute(fields.value) : option.innerHTML;
689
+ option.getAttribute(fields.value) : option.value;
690
690
  if (!isNullOrUndefined(category)) {
691
691
  json[fields.groupBy] = category;
692
692
  }
@@ -1209,7 +1209,7 @@ var DropDownBase = /** @class */ (function (_super) {
1209
1209
  var data = this.sortOrder !== 'None' ? !isNullOrUndefined(this.fields.groupBy) ?
1210
1210
  this.sortedData.filter(function (item) { return !('isHeader' in item) || item.isHeader !== true; }) : this.sortedData : this.listData;
1211
1211
  for (var index = 0; index < liCollections.length; index++) {
1212
- if (JSON.parse(JSON.stringify(data[index]))[this.fields.disabled]) {
1212
+ if (data[index] && JSON.parse(JSON.stringify(data[index]))[this.fields.disabled]) {
1213
1213
  if (!isNullOrUndefined(this.fields.groupBy)) {
1214
1214
  var item = data[index];
1215
1215
  var value = getValue((this.fields.value ? this.fields.value : 'value'), item);
@@ -2076,7 +2076,7 @@ var DropDownList = /** @class */ (function (_super) {
2076
2076
  this.isRequesting = false;
2077
2077
  var eventArgs = {
2078
2078
  preventDefaultAction: false,
2079
- text: this.filterInput.value,
2079
+ text: this.filterInput ? this.filterInput.value : '',
2080
2080
  updateData: function (dataSource, query, fields) {
2081
2081
  if (eventArgs.cancel) {
2082
2082
  return;
@@ -600,7 +600,7 @@ var ListBox = /** @class */ (function (_super) {
600
600
  var targetListObj = this.getComponent(args.target);
601
601
  if (targetListObj && targetListObj.listData.length === 0) {
602
602
  var noRecElem = targetListObj.ulElement.childNodes[0];
603
- if (noRecElem) {
603
+ if (noRecElem && targetListObj.allowDragAndDrop) {
604
604
  targetListObj.ulElement.removeChild(noRecElem);
605
605
  }
606
606
  }