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> {
248
248
this . _activeItem = activeItem == null ? null : activeItem ;
249
249
this . _activeItemIndex = index ;
250
250
251
- if ( ! this . _activeItem ) {
252
- return ;
253
- }
254
- this . _activeItem . focus ( ) ;
251
+ this . _activeItem ?. focus ( ) ;
255
252
if ( this . _activationFollowsFocus ) {
256
- this . _activeItem . activate ( ) ;
253
+ this . _activateCurrentItem ( ) ;
257
254
}
258
255
} ) ;
259
256
}
@@ -295,7 +292,9 @@ export class TreeKeyManager<T extends TreeKeyManagerItem> {
295
292
/** For all items that are the same level as the current item, we expand those items. */
296
293
private _expandAllItemsAtCurrentItemLevel ( ) { }
297
294
298
- private _activateCurrentItem ( ) { }
295
+ private _activateCurrentItem ( ) {
296
+ this . _activeItem ?. activate ( ) ;
297
+ }
299
298
}
300
299
301
300
// tslint:enable
You can’t perform that action at this time.
0 commit comments