()
| 254 | } |
| 255 | |
| 256 | getFocusedChild() { |
| 257 | let currentFocus; |
| 258 | const focusableChildren = this.getFocusableChildren(); |
| 259 | |
| 260 | try { |
| 261 | currentFocus = document.activeElement; |
| 262 | } catch (err) { |
| 263 | currentFocus = focusableChildren[0]; |
| 264 | } |
| 265 | return currentFocus; |
| 266 | } |
| 267 | |
| 268 | trapFocus(ev) { |
| 269 | if (!this.props.trapFocus) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…