Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit 3329ad6

Browse files
committed
Removed implicit logic to fallback to own focus key
1 parent 34a6379 commit 3329ad6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dist/spatialNavigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ var SpatialNavigation = function () {
612612
return;
613613
}
614614

615-
var targetFocusKey = overwriteFocusKey && this.isFocusableComponent(overwriteFocusKey) ? overwriteFocusKey : focusKey;
615+
var targetFocusKey = overwriteFocusKey || focusKey;
616616

617617
var newFocusKey = this.getNextFocusKey(targetFocusKey);
618618

src/spatialNavigation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,7 @@ class SpatialNavigation {
533533
return;
534534
}
535535

536-
const targetFocusKey = overwriteFocusKey && this.isFocusableComponent(overwriteFocusKey) ?
537-
overwriteFocusKey : focusKey;
536+
const targetFocusKey = overwriteFocusKey || focusKey;
538537

539538
const newFocusKey = this.getNextFocusKey(targetFocusKey);
540539

0 commit comments

Comments
 (0)