Align tooltip behavior with native https://github.com/refined-github/refined-github/pull/9668
(tooltip: HTMLElement)
| 59 | https://github.com/refined-github/refined-github/pull/9668 |
| 60 | */ |
| 61 | function attachToDocument(tooltip: HTMLElement): void { |
| 62 | lastElement([ |
| 63 | '#js-repo-pjax-container', |
| 64 | '#js-pjax-container', |
| 65 | '#repo-content-turbo-frame', |
| 66 | '#repo-content-pjax-container', |
| 67 | '[data-turbo-body]', // User profile |
| 68 | ]).append(tooltip); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | Generates a tooltip for the received element. You should use this when generating elements via JSX |
no test coverage detected