()
| 232 | |
| 233 | if (!opts || !opts.preventScroll) { |
| 234 | let scroll = () => { |
| 235 | let activeElement = getActiveElement(); |
| 236 | |
| 237 | if (activeElement === this) { |
| 238 | scrollIntoView(this); |
| 239 | } |
| 240 | }; |
| 241 | |
| 242 | runAfterKeyboard(isOpen => |
| 243 | isOpen ? scroll() : runAfterKeyboardTransition(() => scroll()) |
no test coverage detected