Skip to content

[Bug] Many components forward props to the DOM when they should not #327

Description

@kylegach

Describe the bug

For example, src and type are both rendered on the root div of Avatar: https://5ccbc373887ca40020446347-oghpnhotjv.chromatic.com/?path=/story/avatar--large

Expected behavior

Invalid and unnecessary DOM attributes should not be rendered.

Additional context

Use shouldForwardProp to fix.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions