File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -248,12 +248,9 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
248248 this . _activeItem = activeItem == null ? null : activeItem ;
249249 this . _activeItemIndex = index ;
250250
251- if ( ! this . _activeItem ) {
252- return ;
253- }
254- this . _activeItem . focus ( ) ;
251+ this . _activeItem ?. focus ( ) ;
255252 if ( this . _activationFollowsFocus ) {
256- this . _activeItem . activate ( ) ;
253+ this . _activateCurrentItem ( ) ;
257254 }
258255 } ) ;
259256 }
@@ -295,7 +292,9 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
295292 /** For all items that are the same level as the current item, we expand those items. */
296293 private _expandAllItemsAtCurrentItemLevel ( ) { }
297294
298- private _activateCurrentItem ( ) { }
295+ private _activateCurrentItem ( ) {
296+ this . _activeItem ?. activate ( ) ;
297+ }
299298}
300299
301300// tslint:enable
You can’t perform that action at this time.
0 commit comments