@syncfusion/ej2-dropdowns 31.2.3 → 31.2.5

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.
Files changed (83) hide show
  1. package/README.md +11 -3
  2. package/dist/ej2-dropdowns.min.js +2 -2
  3. package/dist/ej2-dropdowns.umd.min.js +2 -2
  4. package/dist/ej2-dropdowns.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-dropdowns.es2015.js +102 -6
  6. package/dist/es6/ej2-dropdowns.es2015.js.map +1 -1
  7. package/dist/es6/ej2-dropdowns.es5.js +117 -20
  8. package/dist/es6/ej2-dropdowns.es5.js.map +1 -1
  9. package/dist/global/ej2-dropdowns.min.js +2 -2
  10. package/dist/global/ej2-dropdowns.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +6 -6
  13. package/src/combo-box/combo-box.js +3 -1
  14. package/src/drop-down-base/drop-down-base.js +10 -0
  15. package/src/drop-down-list/drop-down-list.d.ts +2 -0
  16. package/src/drop-down-list/drop-down-list.js +27 -1
  17. package/src/mention/mention.js +1 -1
  18. package/src/multi-select/multi-select.d.ts +3 -0
  19. package/src/multi-select/multi-select.js +76 -17
  20. package/styles/bds-lite.css +4 -0
  21. package/styles/bds.css +4 -0
  22. package/styles/bootstrap-dark-lite.css +4 -0
  23. package/styles/bootstrap-dark.css +4 -0
  24. package/styles/bootstrap-lite.css +4 -0
  25. package/styles/bootstrap.css +4 -0
  26. package/styles/bootstrap4-lite.css +4 -0
  27. package/styles/bootstrap4.css +4 -0
  28. package/styles/bootstrap5-dark-lite.css +4 -0
  29. package/styles/bootstrap5-dark.css +4 -0
  30. package/styles/bootstrap5-lite.css +4 -0
  31. package/styles/bootstrap5.3-lite.css +4 -0
  32. package/styles/bootstrap5.3.css +4 -0
  33. package/styles/bootstrap5.css +4 -0
  34. package/styles/drop-down-list/_layout.scss +4 -0
  35. package/styles/drop-down-list/bds.css +4 -0
  36. package/styles/drop-down-list/bootstrap-dark.css +4 -0
  37. package/styles/drop-down-list/bootstrap.css +4 -0
  38. package/styles/drop-down-list/bootstrap4.css +4 -0
  39. package/styles/drop-down-list/bootstrap5-dark.css +4 -0
  40. package/styles/drop-down-list/bootstrap5.3.css +4 -0
  41. package/styles/drop-down-list/bootstrap5.css +4 -0
  42. package/styles/drop-down-list/fabric-dark.css +4 -0
  43. package/styles/drop-down-list/fabric.css +4 -0
  44. package/styles/drop-down-list/fluent-dark.css +4 -0
  45. package/styles/drop-down-list/fluent.css +4 -0
  46. package/styles/drop-down-list/fluent2.css +4 -0
  47. package/styles/drop-down-list/highcontrast-light.css +4 -0
  48. package/styles/drop-down-list/highcontrast.css +4 -0
  49. package/styles/drop-down-list/material-dark.css +4 -0
  50. package/styles/drop-down-list/material.css +4 -0
  51. package/styles/drop-down-list/material3-dark.css +4 -0
  52. package/styles/drop-down-list/material3.css +4 -0
  53. package/styles/drop-down-list/tailwind-dark.css +4 -0
  54. package/styles/drop-down-list/tailwind.css +4 -0
  55. package/styles/drop-down-list/tailwind3.css +4 -0
  56. package/styles/fabric-dark-lite.css +4 -0
  57. package/styles/fabric-dark.css +4 -0
  58. package/styles/fabric-lite.css +4 -0
  59. package/styles/fabric.css +4 -0
  60. package/styles/fluent-dark-lite.css +4 -0
  61. package/styles/fluent-dark.css +4 -0
  62. package/styles/fluent-lite.css +4 -0
  63. package/styles/fluent.css +4 -0
  64. package/styles/fluent2-lite.css +4 -0
  65. package/styles/fluent2.css +4 -0
  66. package/styles/highcontrast-light-lite.css +4 -0
  67. package/styles/highcontrast-light.css +4 -0
  68. package/styles/highcontrast-lite.css +4 -0
  69. package/styles/highcontrast.css +4 -0
  70. package/styles/material-dark-lite.css +4 -0
  71. package/styles/material-dark.css +4 -0
  72. package/styles/material-lite.css +4 -0
  73. package/styles/material.css +4 -0
  74. package/styles/material3-dark-lite.css +4 -0
  75. package/styles/material3-dark.css +4 -0
  76. package/styles/material3-lite.css +4 -0
  77. package/styles/material3.css +4 -0
  78. package/styles/tailwind-dark-lite.css +4 -0
  79. package/styles/tailwind-dark.css +4 -0
  80. package/styles/tailwind-lite.css +4 -0
  81. package/styles/tailwind.css +4 -0
  82. package/styles/tailwind3-lite.css +4 -0
  83. package/styles/tailwind3.css +4 -0
@@ -1617,6 +1617,11 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1617
1617
  if (_this.isVirtualizationEnabled && (e.count !== 0 && e.count < (_this.itemCount * 2))) {
1618
1618
  if (newQuery) {
1619
1619
  for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
1620
+ if (_this.getModuleName() === 'multiselect' && _this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
1621
+ newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !_this.isCustomFiltering)) {
1622
+ isReOrder = false;
1623
+ break;
1624
+ }
1620
1625
  if (newQuery.queries[queryElements].fn === 'onTake') {
1621
1626
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1622
1627
  newQuery.queries[queryElements].e.nos = e.count;
@@ -1728,6 +1733,11 @@ var DropDownBase = /** @__PURE__ @class */ (function (_super) {
1728
1733
  listItems.count < (_this.itemCount * 2)) && !_this.appendUncheckList) {
1729
1734
  if (newQuery) {
1730
1735
  for (var queryElements = 0; queryElements < newQuery.queries.length; queryElements++) {
1736
+ if (_this.getModuleName() === 'multiselect' && _this.isCheckBoxSelection && (newQuery.queries[queryElements].e && (newQuery.queries[queryElements].e.operator === 'notequal' ||
1737
+ newQuery.queries[queryElements].e.operator === 'equal' || newQuery.queries[queryElements].e.condition === 'or' || newQuery.queries[queryElements].e.condition === 'and') && !_this.isCustomFiltering)) {
1738
+ isReOrder = false;
1739
+ break;
1740
+ }
1731
1741
  if (newQuery.queries[queryElements].fn === 'onTake') {
1732
1742
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1733
1743
  newQuery.queries[queryElements].e.nos = listItems.count;
@@ -3674,6 +3684,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3674
3684
  this.onChangeEvent(e);
3675
3685
  }
3676
3686
  this.floatLabelChange();
3687
+ this.updateFloatLabelOverflowWidth();
3677
3688
  this.dispatchEvent(this.hiddenElement, 'change');
3678
3689
  if (this.getModuleName() === 'dropdownlist' && this.element.tagName !== 'INPUT') {
3679
3690
  this.dispatchEvent(this.inputElement, 'blur');
@@ -3690,6 +3701,12 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
3690
3701
  this.trigger('focus', args);
3691
3702
  }
3692
3703
  this.updateIconState();
3704
+ if (this.floatLabelType !== 'Never' && this.inputWrapper && this.inputWrapper.container) {
3705
+ var label = this.inputWrapper.container.querySelector('.e-float-text');
3706
+ if (label) {
3707
+ label.removeAttribute('style');
3708
+ }
3709
+ }
3693
3710
  this.isFocused = true;
3694
3711
  };
3695
3712
  DropDownList.prototype.resizingWireEvent = function () {
@@ -5519,7 +5536,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
5519
5536
  _this.checkFieldValue(x, fieldValue_1) === value_1 : x[checkField_1] === value_1;
5520
5537
  });
5521
5538
  }
5522
- if (!checkVal) {
5539
+ if (!checkVal && !this.enableVirtualization) {
5523
5540
  this.dataSource.executeQuery(this.getQuery(this.query).where(new Predicate(checkField_1, 'equal', value_1)))
5524
5541
  .then(function (e) {
5525
5542
  if (e.result.length > 0) {
@@ -6667,6 +6684,7 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
6667
6684
  this.inputWrapper.container.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never') {
6668
6685
  this.inputWrapper.container.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
6669
6686
  }
6687
+ this.updateFloatLabelOverflowWidth();
6670
6688
  this.wireEvent();
6671
6689
  this.tabIndex = this.element.hasAttribute('tabindex') ? this.element.getAttribute('tabindex') : '0';
6672
6690
  this.element.removeAttribute('tabindex');
@@ -7236,6 +7254,24 @@ var DropDownList = /** @__PURE__ @class */ (function (_super) {
7236
7254
  Input.setCssClass(newClass, [this.popupObj.element], oldClass);
7237
7255
  }
7238
7256
  };
7257
+ DropDownList.prototype.getRightIconsWidth = function () {
7258
+ var container = this.inputWrapper.container;
7259
+ var width = 0;
7260
+ var iconSelectors = '.e-input-group-icon, .e-clear-icon';
7261
+ var icons = container.querySelectorAll(iconSelectors);
7262
+ for (var index = 0; index < icons.length; index++) {
7263
+ width += icons[index].offsetWidth;
7264
+ }
7265
+ return width;
7266
+ };
7267
+ DropDownList.prototype.updateFloatLabelOverflowWidth = function () {
7268
+ var container = this.inputWrapper.container;
7269
+ var label = container.querySelector('.e-float-text');
7270
+ var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
7271
+ if (label && calculateWidth) {
7272
+ label.style.width = calculateWidth + 'px';
7273
+ }
7274
+ };
7239
7275
  /**
7240
7276
  * Return the module name of this component.
7241
7277
  *
@@ -11524,7 +11560,9 @@ var ComboBox = /** @__PURE__ @class */ (function (_super) {
11524
11560
  _this.fields.value : '', _this.value) : _this.value;
11525
11561
  if ((valueFieldValue === dataItem.value && _this.text !== dataItem.text.toString()) ||
11526
11562
  (valueFieldValue !== dataItem.value && _this.text === dataItem.text.toString())) {
11527
- _this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value });
11563
+ _this.setProperties({ 'text': dataItem.text ? dataItem.text.toString() : dataItem.text, 'value': value }, true);
11564
+ _this.setHiddenValue();
11565
+ Input.setValue(_this.text, _this.inputElement, _this.floatLabelType, _this.showClearButton);
11528
11566
  }
11529
11567
  }
11530
11568
  else if (_this.allowCustom) {
@@ -13500,6 +13538,27 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13500
13538
  this.scrollBottom(focusedItem, undefined, false, null, true);
13501
13539
  }
13502
13540
  };
13541
+ MultiSelect.prototype.updatePopupHeightOnFilter = function () {
13542
+ if (this.allowFiltering && this.allowResize && this.keyboardEvent) {
13543
+ if (this.allowResize && this.popupObj && this.list) {
13544
+ var filterText = this.inputElement && this.inputElement.value;
13545
+ var filteredItems = this.list.querySelectorAll('li.e-list-item:not(.e-hide-listitem):not(.e-disabled)');
13546
+ var isFiltering = filterText && filterText.length > 0;
13547
+ if (isFiltering && filteredItems.length > 0) {
13548
+ var itemHeight = filteredItems[0].offsetHeight;
13549
+ var newHeight = filteredItems.length * itemHeight;
13550
+ this.popupObj.element.style.maxHeight = newHeight + 16 + 'px';
13551
+ this.list.style.maxHeight = newHeight + 'px';
13552
+ }
13553
+ else if (!isFiltering) {
13554
+ var restoreHeight = this.resizeHeight || parseInt(this.popupHeight, 10);
13555
+ this.popupObj.element.style.maxHeight = restoreHeight + 'px';
13556
+ this.list.style.maxHeight = restoreHeight + 'px';
13557
+ this.setResize();
13558
+ }
13559
+ }
13560
+ }
13561
+ };
13503
13562
  MultiSelect.prototype.focusAtFirstListItem = function (isOpen) {
13504
13563
  if (this.ulElement && this.ulElement.querySelector('li.'
13505
13564
  + dropDownBaseClasses.li)) {
@@ -14227,7 +14286,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14227
14286
  this.getFilteringSkeletonCount();
14228
14287
  }
14229
14288
  this.refreshPopup();
14230
- if (this.allowResize) {
14289
+ if (this.allowResize && !this.isFilteringAction) {
14231
14290
  this.setResize();
14232
14291
  }
14233
14292
  if (this.mode === 'CheckBox') {
@@ -14414,6 +14473,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14414
14473
  };
14415
14474
  MultiSelect.prototype.onBlurHandler = function (eve, isDocClickFromCheck) {
14416
14475
  var target;
14476
+ this.updatePopupHeightOnFilter();
14417
14477
  if (this.isBlurDispatching && this.isAngular) {
14418
14478
  this.isBlurDispatching = false;
14419
14479
  return;
@@ -14494,6 +14554,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14494
14554
  Input.createSpanElement(this.overAllWrapper, this.createElement);
14495
14555
  }
14496
14556
  this.calculateWidth();
14557
+ this.updateFloatLabelOverflowWidth();
14497
14558
  if (!isNullOrUndefined(this.overAllWrapper) && !isNullOrUndefined(this.overAllWrapper.getElementsByClassName('e-ddl-icon')[0] &&
14498
14559
  this.overAllWrapper.getElementsByClassName('e-float-text-content')[0] && this.floatLabelType !== 'Never')) {
14499
14560
  this.overAllWrapper.getElementsByClassName('e-float-text-content')[0].classList.add('e-icon');
@@ -14696,6 +14757,12 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14696
14757
  this.searchWrapper.classList.remove(ZERO_SIZE);
14697
14758
  }
14698
14759
  this.checkPlaceholderSize();
14760
+ if (this.floatLabelType !== 'Never' && this.overAllWrapper) {
14761
+ var label = this.overAllWrapper.querySelector('.e-float-text');
14762
+ if (label) {
14763
+ label.removeAttribute('style');
14764
+ }
14765
+ }
14699
14766
  if (this.focused) {
14700
14767
  var args = { isInteracted: e ? true : false, event: e };
14701
14768
  this.trigger('focus', args);
@@ -15006,7 +15073,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15006
15073
  if (!(this.mode === 'CheckBox' && this.showSelectAll)) {
15007
15074
  this.refreshPopup();
15008
15075
  }
15009
- if (this.allowResize) {
15076
+ if (this.allowResize && !this.isFilterAction) {
15010
15077
  this.setResize();
15011
15078
  }
15012
15079
  this.isKeyBoardAction = false;
@@ -16728,6 +16795,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
16728
16795
  }
16729
16796
  }
16730
16797
  });
16798
+ this.updatePopupHeightOnFilter();
16731
16799
  };
16732
16800
  MultiSelect.prototype.search = function (e) {
16733
16801
  this.preventSetCurrentData = false;
@@ -17052,28 +17120,29 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
17052
17120
  this.wireListEvents();
17053
17121
  };
17054
17122
  MultiSelect.prototype.initialValueUpdate = function (listItems, isInitialVirtualData) {
17123
+ var _this = this;
17055
17124
  if (this.list) {
17056
17125
  var text = void 0;
17057
17126
  var element = void 0;
17058
- var value = void 0;
17127
+ var value_2;
17059
17128
  if (this.chipCollectionWrapper) {
17060
17129
  this.chipCollectionWrapper.innerHTML = '';
17061
17130
  }
17062
17131
  this.removeListSelection();
17063
17132
  if (!isNullOrUndefined(this.value)) {
17064
17133
  for (var index = 0; !isNullOrUndefined(this.value[index]); index++) {
17065
- value = this.allowObjectBinding ?
17134
+ value_2 = this.allowObjectBinding ?
17066
17135
  getValue(((this.fields.value) ? this.fields.value : ''), this.value[index]) :
17067
17136
  this.value[index];
17068
- element = this.findListElement(this.hideSelectedItem ? this.ulElement : this.list, 'li', 'data-value', value);
17137
+ element = this.findListElement(this.hideSelectedItem ? this.ulElement : this.list, 'li', 'data-value', value_2);
17069
17138
  var isCustomData = false;
17070
17139
  if (this.enableVirtualization) {
17071
17140
  text = null;
17072
17141
  if (listItems != null && listItems.length > 0) {
17073
17142
  for (var i = 0; i < listItems.length; i++) {
17074
- if ((this.isPrimitiveData && listItems[i] === value) || (!this.isPrimitiveData
17143
+ if ((this.isPrimitiveData && listItems[i] === value_2) || (!this.isPrimitiveData
17075
17144
  && getValue((this.fields.value ? this.fields.value :
17076
- 'value'), listItems[i]) === value)) {
17145
+ 'value'), listItems[i]) === value_2)) {
17077
17146
  text = this.isPrimitiveData ? listItems[i] :
17078
17147
  getValue(this.fields.text, listItems[i]);
17079
17148
  if (this.enableVirtualization) {
@@ -17099,7 +17168,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
17099
17168
  if ((isNullOrUndefined(text) && this.allowCustomValue) &&
17100
17169
  ((!(this.dataSource instanceof DataManager)) ||
17101
17170
  (this.dataSource instanceof DataManager && isInitialVirtualData))) {
17102
- text = this.getTextByValue(value);
17171
+ text = this.getTextByValue(value_2);
17103
17172
  isCustomData = true;
17104
17173
  }
17105
17174
  else if ((isNullOrUndefined(text) && !this.allowCustomValue) &&
@@ -17110,30 +17179,39 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
17110
17179
  }
17111
17180
  }
17112
17181
  else {
17113
- text = this.getTextByValue(value);
17182
+ text = this.getTextByValue(value_2);
17114
17183
  }
17115
17184
  if (((element && (element.getAttribute('aria-selected') !== 'true')) ||
17116
17185
  (element && (element.getAttribute('aria-selected') === 'true' && this.hideSelectedItem) &&
17117
17186
  (this.mode === 'Box' || this.mode === 'Default'))) ||
17118
- (this.enableVirtualization && value != null && text != null && !isCustomData)) {
17187
+ (this.enableVirtualization && value_2 != null && text != null && !isCustomData)) {
17119
17188
  var currentText = [];
17120
17189
  var textValues = this.isDynamicRemoteVirtualData && text != null && text !== '' && index === 0 ? text : this.text != null && this.text !== '' && !this.text.includes(text) ? this.text + this.delimiterChar + text : text;
17121
17190
  currentText.push(textValues);
17122
17191
  this.setProperties({ text: currentText.toString() }, true);
17123
- this.addChip(text, value);
17192
+ this.addChip(text, value_2);
17124
17193
  this.addListSelection(element);
17125
17194
  }
17126
- else if ((!this.enableVirtualization && value && this.allowCustomValue) ||
17195
+ else if ((!this.enableVirtualization && value_2 && this.allowCustomValue) ||
17127
17196
  (this.enableVirtualization &&
17128
- value &&
17197
+ value_2 &&
17129
17198
  this.allowCustomValue &&
17130
17199
  ((!(this.dataSource instanceof DataManager)) ||
17131
17200
  (this.dataSource instanceof DataManager && isInitialVirtualData)))) {
17132
17201
  var indexItem = this.listData.length;
17133
17202
  var newValue = {};
17134
- setValue(this.fields.text, value, newValue);
17135
- setValue(this.fields.value, value, newValue);
17203
+ setValue(this.fields.text, value_2, newValue);
17204
+ setValue(this.fields.value, value_2, newValue);
17136
17205
  var noDataEle = this.popupWrapper.querySelector('.' + dropDownBaseClasses.noData);
17206
+ if (newValue && this.allowObjectBinding && this.allowCustomValue && this.value.length > 0 && typeof this.value[0] === 'object') {
17207
+ var valueArray = this.value;
17208
+ var filteredItems = valueArray.filter(function (valObj) {
17209
+ return valObj[_this.fields.value] === value_2;
17210
+ });
17211
+ if (filteredItems.length > 0) {
17212
+ newValue = filteredItems[0]; // Take the first matching item
17213
+ }
17214
+ }
17137
17215
  if (!this.enableVirtualization) {
17138
17216
  this.addItem(newValue, indexItem);
17139
17217
  }
@@ -17146,7 +17224,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
17146
17224
  }
17147
17225
  }
17148
17226
  element = element ? element : this.findListElement(this.hideSelectedItem ?
17149
- this.ulElement : this.list, 'li', 'data-value', value);
17227
+ this.ulElement : this.list, 'li', 'data-value', value_2);
17150
17228
  if (this.popupWrapper.contains(noDataEle)) {
17151
17229
  this.list.setAttribute('style', noDataEle.getAttribute('style'));
17152
17230
  this.popupWrapper.replaceChild(this.list, noDataEle);
@@ -17156,7 +17234,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
17156
17234
  var textValues = this.text != null && this.text !== '' ? this.text + this.delimiterChar + text : text;
17157
17235
  currentText.push(textValues);
17158
17236
  this.setProperties({ text: currentText.toString() }, true);
17159
- this.addChip(text, value);
17237
+ this.addChip(text, value_2);
17160
17238
  this.addListSelection(element);
17161
17239
  }
17162
17240
  }
@@ -18993,6 +19071,24 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
18993
19071
  this.isSelectAll = true;
18994
19072
  this.selectAllItems(state);
18995
19073
  };
19074
+ MultiSelect.prototype.getRightIconsWidth = function () {
19075
+ var container = this.overAllWrapper;
19076
+ var width = 0;
19077
+ var iconSelectors = '.e-input-group-icon, .e-clear-icon';
19078
+ var icons = container.querySelectorAll(iconSelectors);
19079
+ for (var index = 0; index < icons.length; index++) {
19080
+ width += icons[index].offsetWidth;
19081
+ }
19082
+ return width;
19083
+ };
19084
+ MultiSelect.prototype.updateFloatLabelOverflowWidth = function () {
19085
+ var container = this.overAllWrapper;
19086
+ var label = container.querySelector('.e-float-text');
19087
+ var calculateWidth = (container.clientWidth - this.getRightIconsWidth());
19088
+ if (label && calculateWidth) {
19089
+ label.style.width = calculateWidth + 'px';
19090
+ }
19091
+ };
18996
19092
  /**
18997
19093
  * Return the module name of this component.
18998
19094
  *
@@ -19157,6 +19253,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
19157
19253
  closest(this.element, 'fieldset').disabled) {
19158
19254
  this.enabled = false;
19159
19255
  }
19256
+ this.updateFloatLabelOverflowWidth();
19160
19257
  this.wireEvent();
19161
19258
  this.enable(this.enabled);
19162
19259
  this.enableRTL(this.enableRtl);
@@ -23571,7 +23668,7 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
23571
23668
  : lastWordRange.replace(this.mentionChar, '');
23572
23669
  }
23573
23670
  if (this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0) &&
23574
- this.queryString !== '' && e.keyCode !== 38 && e.keyCode !== 40 && !this.lineBreak) {
23671
+ this.queryString !== '' && e.keyCode !== 38 && e.keyCode !== 40 && e.keyCode !== 8 && !this.lineBreak) {
23575
23672
  this.searchLists(e);
23576
23673
  if (!this.isPopupOpen && this.queryString.length >= this.minLength) {
23577
23674
  if (!this.isContentEditable(this.inputElement)) {