Captures focus if it isn't already inside the dialog.
()
| 206 | // TODO(crisbeto): this shouldn't be exposed, but there are internal references to it. |
| 207 | /** Captures focus if it isn't already inside the dialog. */ |
| 208 | _recaptureFocus() { |
| 209 | if (!this._containsFocus()) { |
| 210 | this._trapFocus(); |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | /** |
| 215 | * Focuses the provided element. If the element is not focusable, it will add a tabIndex |
no test coverage detected