Skip to content

Commit ed4186e

Browse files
vikrantjainxavi160
andauthored
fix: make focusDetails optional in navigateByDirection (#218)
* fix: make focusDetails optional in navigateByDirection * Create twenty-nails-compete.md --------- Co-authored-by: Javier López <xavi160@users.noreply.github.com>
1 parent 6c4df35 commit ed4186e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/twenty-nails-compete.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@noriginmedia/norigin-spatial-navigation-core": patch
3+
---
4+
5+
- Make `focusDetails` optional in `navigateByDirection`

packages/core/src/SpatialNavigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ class SpatialNavigationService {
971971
* @example
972972
* navigateByDirection('right') // The focus is moved to right
973973
*/
974-
navigateByDirection(direction: string, focusDetails: FocusDetails) {
974+
navigateByDirection(direction: string, focusDetails: FocusDetails = {}) {
975975
if (this.paused === true || !this.enabled || this.nativeMode) {
976976
return;
977977
}

0 commit comments

Comments
 (0)