@syncfusion/ej2-dropdowns 26.2.11 → 26.2.13

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.
@@ -2684,6 +2684,7 @@ let DropDownList = class DropDownList extends DropDownBase {
2684
2684
  this.isListSearched = false;
2685
2685
  this.preventChange = false;
2686
2686
  this.isTouched = false;
2687
+ this.isFocused = false;
2687
2688
  this.IsScrollerAtEnd = function () {
2688
2689
  return this.list && this.list.scrollTop + this.list.clientHeight >= this.list.scrollHeight;
2689
2690
  };
@@ -3097,6 +3098,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3097
3098
  this.isActive = false;
3098
3099
  this.beforePopupOpen = false;
3099
3100
  }
3101
+ this.isFocused = false;
3100
3102
  }
3101
3103
  focusOutAction(e) {
3102
3104
  this.isInteracted = false;
@@ -3128,6 +3130,7 @@ let DropDownList = class DropDownList extends DropDownBase {
3128
3130
  this.trigger('focus', args);
3129
3131
  }
3130
3132
  this.updateIconState();
3133
+ this.isFocused = true;
3131
3134
  }
3132
3135
  resetValueHandler(e) {
3133
3136
  const formElement = closest(this.inputElement, 'form');
@@ -8112,7 +8115,7 @@ let DropDownTree = class DropDownTree extends Component {
8112
8115
  this.currentText = this.text;
8113
8116
  this.currentValue = this.value;
8114
8117
  if (!isNullOrUndefined(this.value) && this.value.length > 0 && !isNullOrUndefined(this.currentText)) {
8115
- this.inputWrapper.setAttribute('aria-label', this.currentText.split(',').join(' '));
8118
+ this.inputWrapper.setAttribute('aria-label', this.currentText.replace(/,/g, ', '));
8116
8119
  }
8117
8120
  if (this.isInitialized) {
8118
8121
  this.triggerChangeEvent();
@@ -9031,7 +9034,7 @@ let DropDownTree = class DropDownTree extends Component {
9031
9034
  this.currentText = this.text;
9032
9035
  this.currentValue = this.value;
9033
9036
  if (!isNullOrUndefined(this.value) && this.value.length > 0 && !isNullOrUndefined(this.currentText)) {
9034
- this.inputWrapper.setAttribute('aria-label', this.currentText.split(',').join(' '));
9037
+ this.inputWrapper.setAttribute('aria-label', this.currentText.replace(/,/g, ', '));
9035
9038
  }
9036
9039
  else {
9037
9040
  this.inputWrapper.setAttribute('aria-label', this.getModuleName());
@@ -10681,7 +10684,7 @@ let ComboBox = class ComboBox extends DropDownList {
10681
10684
  }
10682
10685
  }
10683
10686
  }
10684
- else if (this.allowCustom && this.isInteracted) {
10687
+ else if (this.allowCustom && this.isFocused) {
10685
10688
  this.isSelectCustom = true;
10686
10689
  }
10687
10690
  }
@@ -21212,7 +21215,7 @@ let Mention = class Mention extends DropDownBase {
21212
21215
  if (isNullOrUndefined(text)) {
21213
21216
  return '';
21214
21217
  }
21215
- const textValue = text.replace(/\u00A0/g, ' ');
21218
+ const textValue = text.indexOf('\u200B') > -1 ? text.replace(/\u200B/g, '').replace(/\u00A0/g, ' ') : text.replace(/\u00A0/g, ' ');
21216
21219
  const words = textValue.split(/\s+/);
21217
21220
  const wordCnt = words.length - 1;
21218
21221
  return words[wordCnt].trim();