(opts = {})
| 268 | return nextNode; |
| 269 | }, |
| 270 | focusLast(opts = {}) { |
| 271 | let scope = scopeRef.current!; |
| 272 | let {tabbable, accept} = opts; |
| 273 | let scopeRoot = getScopeRoot(scope); |
| 274 | let walker = getFocusableTreeWalker(scopeRoot, {tabbable, accept}, scope); |
| 275 | walker.currentNode = scope[scope.length - 1].nextElementSibling!; |
| 276 | let previousNode = walker.previousNode() as FocusableElement; |
| 277 | if (previousNode) { |
| 278 | focusElement(previousNode, true); |
| 279 | } |
| 280 | return previousNode; |
| 281 | } |
| 282 | }; |
| 283 | } |
| 284 |
nothing calls this directly
no test coverage detected