@noriginmedia/react-spatial-navigation
Advanced tools
Comparing version 2.12.1 to 2.12.2
@@ -7,2 +7,6 @@ # Changelog | ||
## [2.12.2] | ||
### Changed | ||
- update layouts at the beginning of smartNavigate instead of after setFocus | ||
## [2.12.1] | ||
@@ -9,0 +13,0 @@ ### Fixed |
@@ -621,2 +621,6 @@ 'use strict'; | ||
if (!this.nativeMode && !fromParentFocusKey) { | ||
this.updateAllLayouts(); | ||
} | ||
var currentComponent = this.focusableComponents[fromParentFocusKey || this.focusKey]; | ||
@@ -1038,6 +1042,2 @@ | ||
this.updateParentsLastFocusedChild(lastFocusedKey); | ||
if (!this.nativeMode) { | ||
this.updateAllLayouts(); | ||
} | ||
} | ||
@@ -1044,0 +1044,0 @@ }, { |
{ | ||
"name": "@noriginmedia/react-spatial-navigation", | ||
"version": "2.12.1", | ||
"version": "2.12.2", | ||
"description": "HOC-based Spatial Navigation (key navigation) solution for React", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
104000