MCPcopy Index your code
hub / github.com/react-bootstrap/react-bootstrap / triggerBrowserReflow

Function triggerBrowserReflow

src/triggerBrowserReflow.tsx:3–6  ·  view source on GitHub ↗
(node: HTMLElement)

Source from the content-addressed store, hash-verified

1// reading a dimension prop will cause the browser to recalculate,
2// which will let our animations work
3export default function triggerBrowserReflow(node: HTMLElement): void {
4 // eslint-disable-next-line @typescript-eslint/no-unused-expressions
5 node.offsetHeight;
6}

Callers 3

Collapse.tsxFile · 0.85
Carousel.tsxFile · 0.85
Fade.tsxFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…