@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.
@@ -5181,7 +5181,7 @@ let DropDownTree = class DropDownTree extends Component {
5181
5181
  case 'moveDown':
5182
5182
  let focusedElement = this.treeObj.element.querySelector('li');
5183
5183
  focusedElement.focus();
5184
- addClass([focusedElement], ['e-hover', 'e-node-focus']);
5184
+ addClass([focusedElement], ['e-node-focus']);
5185
5185
  }
5186
5186
  }
5187
5187
  });
@@ -5856,7 +5856,7 @@ let DropDownTree = class DropDownTree extends Component {
5856
5856
  && this.treeItems.length > 0)) {
5857
5857
  let focusedElement = this.treeObj.element.querySelector('li');
5858
5858
  focusedElement.focus();
5859
- addClass([focusedElement], ['e-hover', 'e-node-focus']);
5859
+ addClass([focusedElement], ['e-node-focus']);
5860
5860
  }
5861
5861
  if (this.checkSelectAll && this.checkBoxElement) {
5862
5862
  const wrap = closest(this.checkBoxElement, '.' + CHECKBOXWRAP);
@@ -14383,6 +14383,13 @@ let ListBox = ListBox_1 = class ListBox extends DropDownBase {
14383
14383
  * @returns {void}
14384
14384
  */
14385
14385
  selectItems(items, state = true, isValue) {
14386
+ if (state && !this.selectionSettings.showCheckbox && this.selectionSettings.mode === 'Single') {
14387
+ this.getSelectedItems().forEach((li) => {
14388
+ li.classList.remove('e-active');
14389
+ li.removeAttribute('aria-selected');
14390
+ removeClass([li], cssClass.selected);
14391
+ });
14392
+ }
14386
14393
  this.setSelection(items, state, !isValue);
14387
14394
  this.updateSelectedOptions();
14388
14395
  }