@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
|
@@ -4388,6 +4388,9 @@ let DropDownList = class DropDownList extends DropDownBase {
|
|
|
4388
4388
|
if ((this.value === dataItem.value && this.text !== dataItem.text) ||
|
|
4389
4389
|
(this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
4390
4390
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
4391
|
+
if (isNullOrUndefined(li)) {
|
|
4392
|
+
this.previousValue = this.value;
|
|
4393
|
+
}
|
|
4391
4394
|
}
|
|
4392
4395
|
}
|
|
4393
4396
|
}
|
|
@@ -8816,6 +8819,9 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8816
8819
|
this.trigger('beforeOpen', args, (args) => {
|
|
8817
8820
|
if (!args.cancel) {
|
|
8818
8821
|
addClass([this.inputWrapper], [ICONANIMATION]);
|
|
8822
|
+
if (this.isReact && this.isFilterRestore) {
|
|
8823
|
+
this.treeObj.refresh();
|
|
8824
|
+
}
|
|
8819
8825
|
if (this.isFirstRender) {
|
|
8820
8826
|
this.popupEle = this.createElement('div', {
|
|
8821
8827
|
id: this.element.id + '_options', className: POPUP_CLASS + ' ' + (this.cssClass != null ? this.cssClass : '')
|
|
@@ -8828,7 +8834,6 @@ let DropDownTree = class DropDownTree extends Component {
|
|
|
8828
8834
|
else {
|
|
8829
8835
|
this.popupEle = this.popupObj.element;
|
|
8830
8836
|
if (this.isReact && this.isFilterRestore) {
|
|
8831
|
-
this.treeObj.refresh();
|
|
8832
8837
|
this.isFilteredData = true;
|
|
8833
8838
|
this.popupEle.removeChild(this.filterContainer);
|
|
8834
8839
|
}
|
|
@@ -10813,7 +10818,8 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
10813
10818
|
onBlurHandler(e) {
|
|
10814
10819
|
const inputValue = this.inputElement && this.inputElement.value === '' ?
|
|
10815
10820
|
null : this.inputElement && this.inputElement.value;
|
|
10816
|
-
|
|
10821
|
+
const text = !isNullOrUndefined(this.text) ? this.text.replace(/\r\n|\n|\r/g, '') : this.text;
|
|
10822
|
+
if (!isNullOrUndefined(this.listData) && !isNullOrUndefined(inputValue) && inputValue !== text) {
|
|
10817
10823
|
this.customValue(e);
|
|
10818
10824
|
}
|
|
10819
10825
|
super.onBlurHandler(e);
|
|
@@ -10938,6 +10944,9 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
10938
10944
|
if ((this.value === dataItem.value && this.text !== dataItem.text)
|
|
10939
10945
|
|| (this.value !== dataItem.value && this.text === dataItem.text)) {
|
|
10940
10946
|
this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
|
|
10947
|
+
if (isNullOrUndefined(li)) {
|
|
10948
|
+
this.previousValue = this.value;
|
|
10949
|
+
}
|
|
10941
10950
|
}
|
|
10942
10951
|
}
|
|
10943
10952
|
}
|
|
@@ -11614,8 +11623,9 @@ let ComboBox = class ComboBox extends DropDownList {
|
|
|
11614
11623
|
this.removeFillSelection();
|
|
11615
11624
|
}
|
|
11616
11625
|
const dataItem = this.isSelectCustom ? { text: '' } : this.getItemData();
|
|
11626
|
+
const text = !isNullOrUndefined(dataItem.text) ? dataItem.text.replace(/\r\n|\n|\r/g, '') : dataItem.text;
|
|
11617
11627
|
const selected = !isNullOrUndefined(this.list) ? this.list.querySelector('.' + dropDownListClasses.selected) : null;
|
|
11618
|
-
if (this.inputElement &&
|
|
11628
|
+
if (this.inputElement && text === this.inputElement.value && !isNullOrUndefined(selected)) {
|
|
11619
11629
|
if (this.isSelected) {
|
|
11620
11630
|
this.onChangeEvent(e);
|
|
11621
11631
|
this.isSelectCustom = false;
|
|
@@ -13140,7 +13150,7 @@ let MultiSelect = class MultiSelect extends DropDownBase {
|
|
|
13140
13150
|
if (!this.enableVirtualization || (this.enableVirtualization && (!(this.dataSource instanceof DataManager)))) {
|
|
13141
13151
|
this.initialValueUpdate();
|
|
13142
13152
|
}
|
|
13143
|
-
else {
|
|
13153
|
+
else if (!this.isRemoveSelection) {
|
|
13144
13154
|
this.initialValueUpdate(this.listData, true);
|
|
13145
13155
|
}
|
|
13146
13156
|
this.initialUpdate();
|
|
@@ -21666,8 +21676,14 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
|
|
|
21666
21676
|
text = value;
|
|
21667
21677
|
}
|
|
21668
21678
|
if (typeof (text) === 'string') {
|
|
21669
|
-
|
|
21670
|
-
|
|
21679
|
+
if (text.indexOf('\n') !== -1) {
|
|
21680
|
+
const txt = CSS.escape(text);
|
|
21681
|
+
li = this.list.querySelector('[data-value="' + txt + '"]');
|
|
21682
|
+
}
|
|
21683
|
+
else {
|
|
21684
|
+
text = text.split('\\').join('\\\\');
|
|
21685
|
+
li = this.list.querySelector('[data-value="' + text.replace(/"/g, '\\"') + '"]');
|
|
21686
|
+
}
|
|
21671
21687
|
}
|
|
21672
21688
|
else {
|
|
21673
21689
|
li = this.list.querySelector('[data-value="' + text + '"]');
|