Skip to content

[DBSelect] React: Each child in a list should have a unique "key" prop. #4293

Closed
@IOIO72

Description

@IOIO72

Which generators are impacted?

  • All
  • HTML
  • React
  • Angular
  • Vue
  • Web components
  • Power Apps

Reproduction case

Used package:
"@db-ux/react-core-components": "2.1.1"

 <DBSelect
      label="Test"
      value="1"
      options={[{ label: '1', value: '1' }, { label: '2', value: '2' }]}
      showLabel={false}
    />

Result in console:

Each child in a list should have a unique "key" prop.

Check the render method of `ForwardRef(DBSelectFn)`. See https://react.dev/link/warning-keys for more information.

Expected Behaviour

No console output

Browser version

Edge

Add any other context about the problem here.

The key seems to be missing here.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions