add tests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
2230b7732a
commit
4504d9b790
2 changed files with 118 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue