@syncfusion/ej2-dropdowns 29.1.33 → 29.1.37
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.
- package/dist/ej2-dropdowns.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js +2 -2
- package/dist/ej2-dropdowns.umd.min.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es2015.js +22 -6
- package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
- package/dist/es6/ej2-dropdowns.es5.js +22 -6
- package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
- package/dist/global/ej2-dropdowns.min.js +2 -2
- package/dist/global/ej2-dropdowns.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/combo-box/combo-box.js +7 -2
- package/src/drop-down-list/drop-down-list.js +3 -0
- package/src/drop-down-tree/drop-down-tree.js +3 -1
- package/src/list-box/list-box.js +8 -2
- package/src/multi-select/multi-select.js +1 -1
|
@@ -4495,6 +4495,9 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
|
|
|
4495
4495
|
if ((this.value === dataItem.value && this.text !== dataItem.text) ||
|
|
4496
4496
|
(this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
4497
4497
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
4498
|
+
if (isNullOrUndefined(li)) {
|
|
4499
|
+
this.previousValue = this.value;
|
|
4500
|
+
}
|
|
4498
4501
|
}
|
|
4499
4502
|
}
|
|
4500
4503
|
}
|
|
@@ -8999,6 +9002,9 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
8999
9002
|
this.trigger('beforeOpen', args, function (args) {
|
|
9000
9003
|
if (!args.cancel) {
|
|
9001
9004
|
addClass([_this.inputWrapper], [ICONANIMATION]);
|
|
9005
|
+
if (_this.isReact && _this.isFilterRestore) {
|
|
9006
|
+
_this.treeObj.refresh();
|
|
9007
|
+
}
|
|
9002
9008
|
if (_this.isFirstRender) {
|
|
9003
9009
|
_this.popupEle = _this.createElement('div', {
|
|
9004
9010
|
id: _this.element.id + '_options', className: POPUP_CLASS + ' ' + (_this.cssClass != null ? _this.cssClass : '')
|
|
@@ -9011,7 +9017,6 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
|
|
|
9011
9017
|
else {
|
|
9012
9018
|
_this.popupEle = _this.popupObj.element;
|
|
9013
9019
|
if (_this.isReact && _this.isFilterRestore) {
|
|
9014
|
-
_this.treeObj.refresh();
|
|
9015
9020
|
_this.isFilteredData = true;
|
|
9016
9021
|
_this.popupEle.removeChild(_this.filterContainer);
|
|
9017
9022
|
}
|
|
@@ -11022,7 +11027,8 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11022
11027
|
ComboBox.prototype.onBlurHandler = function (e) {
|
|
11023
11028
|
var inputValue = this.inputElement && this.inputElement.value === '' ?
|
|
11024
11029
|
null : this.inputElement && this.inputElement.value;
|
|
11025
|
-
|
|
11030
|
+
var text = !isNullOrUndefined(this.text) ? this.text.replace(/\r\n|\n|\r/g, '') : this.text;
|
|
11031
|
+
if (!isNullOrUndefined(this.listData) && !isNullOrUndefined(inputValue) && inputValue !== text) {
|
|
11026
11032
|
this.customValue(e);
|
|
11027
11033
|
}
|
|
11028
11034
|
_super.prototype.onBlurHandler.call(this, e);
|
|
@@ -11147,6 +11153,9 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11147
11153
|
if ((this.value === dataItem.value && this.text !== dataItem.text)
|
|
11148
11154
|
|| (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
11149
11155
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
11156
|
+
if (isNullOrUndefined(li)) {
|
|
11157
|
+
this.previousValue = this.value;
|
|
11158
|
+
}
|
|
11150
11159
|
}
|
|
11151
11160
|
}
|
|
11152
11161
|
}
|
|
@@ -11828,8 +11837,9 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
11828
11837
|
this.removeFillSelection();
|
|
11829
11838
|
}
|
|
11830
11839
|
var dataItem = this.isSelectCustom ? { text: '' } : this.getItemData();
|
|
11840
|
+
var text = !isNullOrUndefined(dataItem.text) ? dataItem.text.replace(/\r\n|\n|\r/g, '') : dataItem.text;
|
|
11831
11841
|
var selected = !isNullOrUndefined(this.list) ? this.list.querySelector('.' + dropDownListClasses.selected) : null;
|
|
11832
|
-
if (this.inputElement &&
|
|
11842
|
+
if (this.inputElement && text === this.inputElement.value && !isNullOrUndefined(selected)) {
|
|
11833
11843
|
if (this.isSelected) {
|
|
11834
11844
|
this.onChangeEvent(e);
|
|
11835
11845
|
this.isSelectCustom = false;
|
|
@@ -13392,7 +13402,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
|
|
|
13392
13402
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
13393
13403
|
this.initialValueUpdate();
|
|
13394
13404
|
}
|
|
13395
|
-
else {
|
|
13405
|
+
else if (!this.isRemoveSelection) {
|
|
13396
13406
|
this.initialValueUpdate(this.listData, true);
|
|
13397
13407
|
}
|
|
13398
13408
|
this.initialUpdate();
|
|
@@ -22024,8 +22034,14 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
|
|
|
22024
22034
|
text = value;
|
|
22025
22035
|
}
|
|
22026
22036
|
if (typeof (text) === 'string') {
|
|
22027
|
-
|
|
22028
|
-
|
|
22037
|
+
if (text.indexOf('\n') !== -1) {
|
|
22038
|
+
var txt = CSS.escape(text);
|
|
22039
|
+
li = _this.list.querySelector('[data-value="' + txt + '"]');
|
|
22040
|
+
}
|
|
22041
|
+
else {
|
|
22042
|
+
text = text.split('\\').join('\\\\');
|
|
22043
|
+
li = _this.list.querySelector('[data-value="' + text.replace(/"/g, '\\"') + '"]');
|
|
22044
|
+
}
|
|
22029
22045
|
}
|
|
22030
22046
|
else {
|
|
22031
22047
|
li = _this.list.querySelector('[data-value="' + text + '"]');
|