@noriginmedia/react-spatial-navigation
Advanced tools
Changelog
[2.8.0]
dist
folder is removed from source. It is generated only when publishing to NPM now.Changelog
[2.7.2]
setFocus
even if they have focusable={false}
Changelog
[2.7.1]
focusable
prop that enables component as a focusable target. Default is true. Usable when you need to temporarily disable focusable behaviour on the component. E.g. disabled button state.react
and react-dom
to peer dependenciesChangelog
[2.6.0]
.cancel()
instead of .flush()
Changelog
[2.5.0]
Changelog
[2.4.0]
onArrowPress
property, it enables to add a custom behavior when arrows are pressed and can prevent the default navigation.Changelog
[2.3.2]
lastFocusedChildKey
were not saved for all focusable parents when focus is jumping to another tree branch with setFocus
.Changelog
[2.3.0]
nativeMode
flag, it will skip creating window event listeners, measuring coordinates and other web-only features. It will still continue to register all focusable components and update focused
flag on them.stealFocus
to withFocusable
hoc. It works exactly the same as setFocus
apart from that it doesn't care about arguments passed to this method. This is useful when binding it to a callback that passed some params back that you don't care about.Changelog
[2.2.1]
propagateFocus
config option and prop for withFocusable
HOC because it was always used for items with children items anyway