Skip to content

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

@itsdouges

Description

@itsdouges

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.

Metadata

Metadata

Assignees

Labels

BugSomething isn't workingContribution readyThis issue is a perfect candidate for external contribution.Low priority / Won't fixThis issue doesn't have enough interest and is also a low priority one.Renderer

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions