Skip to content

DisclosureGroup missing items #7950

@mversic

Description

@mversic

Provide a general summary of the issue here

Collections in RAC have items prop. Arguably DisclosureGroup is not listed under collections but neither is ComboBox which has items prop. Any component in RAC that wraps a list of components should have items prop and provide the ability to use a render function

🤔 Expected Behavior?

items is a prop of DisclosureGroup:

    <DisclosureGroup items={items.map((item, idx) => ({...item, id: idx}))}>
      {(item) => (
        <Disclosure>
            {item}
        </Disclosure>
      )}
    </DisclosureGroup>

😯 Current Behavior

there is no items prop:

    <DisclosureGroup>
      {items.map((item, idx) => (
        <Disclosure key={idx} id={idx}>
            {item}
        </Disclosure>
      ))}
    </DisclosureGroup>

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

feature missing

Version

1.7.1 RAC

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

macOS

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions