@syncfusion/ej2-dropdowns 21.1.41 → 21.2.3

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.
@@ -5283,7 +5283,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
5283
5283
  case 'moveDown':
5284
5284
  var focusedElement = _this.treeObj.element.querySelector('li');
5285
5285
  focusedElement.focus();
5286
- addClass([focusedElement], ['e-hover', 'e-node-focus']);
5286
+ addClass([focusedElement], ['e-node-focus']);
5287
5287
  }
5288
5288
  }
5289
5289
  });
@@ -5962,7 +5962,7 @@ var DropDownTree = /** @__PURE__ @class */ (function (_super) {
5962
5962
  && _this.treeItems.length > 0)) {
5963
5963
  var focusedElement = _this.treeObj.element.querySelector('li');
5964
5964
  focusedElement.focus();
5965
- addClass([focusedElement], ['e-hover', 'e-node-focus']);
5965
+ addClass([focusedElement], ['e-node-focus']);
5966
5966
  }
5967
5967
  if (_this.checkSelectAll && _this.checkBoxElement) {
5968
5968
  var wrap = closest(_this.checkBoxElement, '.' + CHECKBOXWRAP);
@@ -14601,6 +14601,13 @@ var ListBox = /** @__PURE__ @class */ (function (_super) {
14601
14601
  */
14602
14602
  ListBox.prototype.selectItems = function (items, state, isValue) {
14603
14603
  if (state === void 0) { state = true; }
14604
+ if (state && !this.selectionSettings.showCheckbox && this.selectionSettings.mode === 'Single') {
14605
+ this.getSelectedItems().forEach(function (li) {
14606
+ li.classList.remove('e-active');
14607
+ li.removeAttribute('aria-selected');
14608
+ removeClass([li], cssClass.selected);
14609
+ });
14610
+ }
14604
14611
  this.setSelection(items, state, !isValue);
14605
14612
  this.updateSelectedOptions();
14606
14613
  };