()
| 307 | } |
| 308 | |
| 309 | getFocusedChild() { |
| 310 | let currentFocus; |
| 311 | const focusableChildren = this.getFocusableChildren(); |
| 312 | |
| 313 | try { |
| 314 | currentFocus = document.activeElement; |
| 315 | } catch (err) { |
| 316 | currentFocus = focusableChildren[0]; |
| 317 | } |
| 318 | return currentFocus; |
| 319 | } |
| 320 | |
| 321 | trapFocus(ev) { |
| 322 | if (!this.props.trapFocus) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…