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 {
2424import { QueryList } from '@angular/core' ;
2525import { isObservable , Observable , Subject } from 'rxjs' ;
2626
27- // TODO(cassc): Temporarily disable tslint since this is just the raw API.
28- // tslint:disable
29-
3027/** Represents an item within a tree that can be passed to a TreeKeyManager. */
3128export interface TreeKeyManagerItem {
3229 /** Whether the item is disabled. */
@@ -226,7 +223,9 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
226223 * Handles a mouse click on a particular tree item.
227224 * @param treeItem The item that was clicked by the user.
228225 */
229- onClick ( treeItem : T ) { }
226+ onClick ( treeItem : T ) {
227+ this . _setActiveItem ( treeItem ) ;
228+ }
230229
231230 /** Index of the currently active item. */
232231 getActiveItemIndex ( ) : number | null {
@@ -318,4 +317,3 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
318317 }
319318}
320319
321- // tslint:enable
You can’t perform that action at this time.
0 commit comments