dillon1000/react

Commit

Support highlighting of all DOM elements of Fragments, not just first

Fixes https://github.com/bvaughn/react-devtools-experimental/issues/131

Uses the new function `findAllCurrentHostFibers`.

Removes dependency on React's `renderer.findHostInstanceByFiber` function
which used to highlight only the first DOM element of a Fragment.

Reworked `src/backend/views/Overlay` to support highlighting
more than one element rectangle annotated with one tooltip.
Fixed minor issues with the tooltip position calculation.
Browse files
Changed paths5 files
First-parent comparison
M src/backend/agent.js ModifiedM src/backend/renderer.js ModifiedM src/backend/types.js ModifiedM src/backend/views/Highlighter.js ModifiedM src/backend/views/Overlay.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…