@syncfusion/ej2-dropdowns 24.2.4 → 24.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.
@@ -11388,6 +11388,11 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
11388
11388
  }
11389
11389
  };
11390
11390
  MultiSelect.prototype.removelastSelection = function (e) {
11391
+ var selectedElem = this.chipCollectionWrapper.querySelector('span.' + CHIP_SELECTED);
11392
+ if (selectedElem !== null) {
11393
+ this.removeSelectedChip(e);
11394
+ return;
11395
+ }
11391
11396
  var elements = this.chipCollectionWrapper.querySelectorAll('span.' + CHIP$1);
11392
11397
  var value = elements[elements.length - 1].getAttribute('data-value');
11393
11398
  if (!isNullOrUndefined(this.value)) {
@@ -13543,7 +13548,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
13543
13548
  if (delim) {
13544
13549
  this.updateWrapperText(this.delimiterWrapper, data);
13545
13550
  this.delimiterWrapper.setAttribute('id', getUniqueID('delim_val'));
13546
- this.inputElement.setAttribute('aria-labelledby', this.delimiterWrapper.id);
13551
+ this.inputElement.setAttribute('aria-describedby', this.delimiterWrapper.id);
13547
13552
  }
13548
13553
  var targetEle = e && e.target;
13549
13554
  var isClearAll = (targetEle && targetEle.classList.contains('e-close-hooker')) ? true : null;
@@ -14517,7 +14522,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
14517
14522
  this.hiddenElement.innerHTML = hiddenValue;
14518
14523
  this.updateWrapperText(this.delimiterWrapper, wrapperText);
14519
14524
  this.delimiterWrapper.setAttribute('id', getUniqueID('delim_val'));
14520
- this.inputElement.setAttribute('aria-labelledby', this.delimiterWrapper.id);
14525
+ this.inputElement.setAttribute('aria-describedby', this.delimiterWrapper.id);
14521
14526
  this.setProperties({ text: text.toString() }, true);
14522
14527
  this.refreshInputHight();
14523
14528
  this.refreshPlaceHolder();
@@ -15033,7 +15038,7 @@ var MultiSelect = /** @__PURE__ @class */ (function (_super) {
15033
15038
  }
15034
15039
  });
15035
15040
  if (this.mode === 'Default' || this.mode === 'Box') {
15036
- this.inputElement.setAttribute('aria-labelledby', this.chipCollectionWrapper.id);
15041
+ this.inputElement.setAttribute('aria-describedby', this.chipCollectionWrapper.id);
15037
15042
  }
15038
15043
  if (this.element.tagName !== this.getNgDirective()) {
15039
15044
  this.element.style.display = 'none';
@@ -18801,7 +18806,9 @@ var Mention = /** @__PURE__ @class */ (function (_super) {
18801
18806
  }
18802
18807
  return;
18803
18808
  }
18804
- this.queryString = lastWordRange.replace(this.mentionChar, '');
18809
+ if (lastWordRange.includes(this.mentionChar)) {
18810
+ this.queryString = lastWordRange.replace(this.mentionChar, '');
18811
+ }
18805
18812
  if (this.mentionChar.charCodeAt(0) === lastWordRange.charCodeAt(0) &&
18806
18813
  this.queryString !== '' && e.keyCode !== 38 && e.keyCode !== 40 && !this.lineBreak) {
18807
18814
  this.searchLists(e);