@noriginmedia/react-spatial-navigation
Advanced tools
Changelog
[2.11.0]
onBecameBlurred
and onBecameFocused
are always invoked synchonously with focus change and not on componentDidUpdatesetFocus
and navigateByDirection
accept an details object, this object is passed back on onBecameBlurred
and onBecameFocused
callbacksChangelog
[2.10.0]
onBecameFocused
, now it's invoked also in case of stealFocusonBecameBlurred
with the same behaviour of onBecameFocused
but invoked on component losing focusChangelog
[2.9.3]
KeyDetails
param on callback functions onEnterPress
and onArrowPress
Changelog
[2.9.2]
setTimeout
in measureLayout
to avoid coordinates mismatches with DOM nodes.Changelog
[2.9.1]
Jest
).getNearestChild
that helps to find the nearest child by coordinates.getNearestChild
.getNextFocusKey
method (We use the getNearestChild
function instead).Changelog
[2.9.0]
navigateByDirection
method for it.Changelog
[2.8.2]