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