* Sets cursor to the default position and removes CSS-class from previously focused item
()
| 100 | * Sets cursor to the default position and removes CSS-class from previously focused item |
| 101 | */ |
| 102 | public dropCursor(): void { |
| 103 | if (this.cursor === -1) { |
| 104 | return; |
| 105 | } |
| 106 | |
| 107 | this.items[this.cursor].classList.remove(this.focusedCssClass); |
| 108 | this.cursor = -1; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Leafs nodes inside the target list from active element |