(element, activeElementInfo)
| 6709 | if (element) return element; |
| 6710 | } |
| 6711 | function focusActiveElement(element, activeElementInfo) { |
| 6712 | element.focus(); |
| 6713 | element.scrollTop = activeElementInfo.scrollTop; |
| 6714 | const input = element; |
| 6715 | if (input.setSelectionRange && activeElementInfo && activeElementInfo.selectionStart != null && activeElementInfo.selectionEnd != null) input.setSelectionRange(activeElementInfo.selectionStart, activeElementInfo.selectionEnd, activeElementInfo.selectionDirection); |
| 6716 | } |
| 6717 | function setActiveElement(activeElementInfo, container) { |
| 6718 | if (activeElementInfo) { |
| 6719 | const element = findElementByChildPositions(activeElementInfo.childPositions, container); |
no test coverage detected