triplex icon indicating copy to clipboard operation
triplex copied to clipboard

When hovering / selecting nested DOM elements in the element panel that are present across multiple usages the selection outline highlights more than expected

Open itsdouges opened this issue 10 months ago • 0 comments

To replicate:

  • Open App inside examples/gitplex/src/app.tsx
  • Expand the children of the "douges" comment component
  • Hover / select the children, see how it outlines all usages

What happens: The outline selects all usages of the element What is expected: The outline should only highlight the direct children of the component

The component that controls rendering is here: https://github.com/pmndrs/triplex/blob/main/packages/renderer/src/features/selection-react-dom/selection-indicator.tsx

Each outline selection should be scoped to the parent component rendered in JSX.

itsdouges avatar Feb 24 '25 03:02 itsdouges