MCPcopy Index your code
hub / github.com/refined-github/refined-github / attachToDocument

Function attachToDocument

source/helpers/tooltip.tsx:61–69  ·  view source on GitHub ↗

Align tooltip behavior with native https://github.com/refined-github/refined-github/pull/9668

(tooltip: HTMLElement)

Source from the content-addressed store, hash-verified

59https://github.com/refined-github/refined-github/pull/9668
60*/
61function 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/**
72Generates a tooltip for the received element. You should use this when generating elements via JSX

Callers 2

tooltippedFunction · 0.85
addTooltipFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected