Skip to content

Filter domProps on TabPanelsΒ #9419

@artola

Description

@artola

Provide a general summary of the issue here

The props of TabPanels are spread in the root div element.

In dynamic collections that means at least items. For example:

<div items="[object Object],[object Object],[object Object]" class="react-aria-TabPanels">
  {/* ... */}
</div>

It is reproducible on the new docs:

https://react-aria.adobe.com/Tabs#content

πŸ€” Expected Behavior?

Use typical filter props:

const DOMProps = filterDOMProps(props, {global: true});

😯 Current Behavior

Any prop is stringified to the dom.

πŸ’ Possible Solution

No response

πŸ”¦ Context

RAC 1.14.0

πŸ–₯️ Steps to Reproduce

https://codesandbox.io/p/sandbox/nifty-goldstine-s5dydz?file=%2Fsrc%2FApp.js%3A18%2C59

Version

RAC 1.14.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

osx

🧒 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