(el: Element)
| 26 | * or a selector within the host, if supplied through `scrollTarget`. |
| 27 | */ |
| 28 | export const getScrollElement = async (el: Element) => { |
| 29 | if (isIonContent(el)) { |
| 30 | await new Promise((resolve) => componentOnReady(el, resolve)); |
| 31 | return (el as HTMLIonContentElement).getScrollElement(); |
| 32 | } |
| 33 | |
| 34 | return el as HTMLElement; |
| 35 | }; |
| 36 | |
| 37 | /** |
| 38 | * Queries the element matching the selector for IonContent. |
no test coverage detected