add tests

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-01-16 03:15:52 +00:00
parent 2230b7732a
commit 4504d9b790
2 changed files with 118 additions and 1 deletions

View file

@ -153,7 +153,7 @@ export const RovingTabIndexHomeEndHelper = ({children}) => {
switch (ev.key) {
case Key.HOME:
// move focus to first item
setImmediate(() => context.state.refs[0].current.focus());
context.state.refs[0].current.focus();
break;
case Key.END:
// move focus to last item