(scopeRef: ScopeRef)
| 288 | } |
| 289 | |
| 290 | function shouldContainFocus(scopeRef: ScopeRef) { |
| 291 | let scope = focusScopeTree.getTreeNode(activeScope); |
| 292 | while (scope && scope.scopeRef !== scopeRef) { |
| 293 | if (scope.contain) { |
| 294 | return false; |
| 295 | } |
| 296 | |
| 297 | scope = scope.parent; |
| 298 | } |
| 299 | |
| 300 | return true; |
| 301 | } |
| 302 | |
| 303 | function getRadiosInGroup(element: HTMLInputElement): HTMLInputElement[] { |
| 304 | if (!element.form) { |
no test coverage detected