dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisonsrc/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…