File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ import {
24
24
import { QueryList } from '@angular/core' ;
25
25
import { isObservable , Observable , Subject } from 'rxjs' ;
26
26
27
- // TODO(cassc): Temporarily disable tslint since this is just the raw API.
28
- // tslint:disable
29
-
30
27
/** Represents an item within a tree that can be passed to a TreeKeyManager. */
31
28
export interface TreeKeyManagerItem {
32
29
/** Whether the item is disabled. */
@@ -226,7 +223,9 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
226
223
* Handles a mouse click on a particular tree item.
227
224
* @param treeItem The item that was clicked by the user.
228
225
*/
229
- onClick ( treeItem : T ) { }
226
+ onClick ( treeItem : T ) {
227
+ this . _setActiveItem ( treeItem ) ;
228
+ }
230
229
231
230
/** Index of the currently active item. */
232
231
getActiveItemIndex ( ) : number | null {
@@ -318,4 +317,3 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
318
317
}
319
318
}
320
319
321
- // tslint:enable
You can’t perform that action at this time.
0 commit comments