Skip to content

RAC: <Tab> has a incorrect ref type #9130

@lixiaoyan

Description

@lixiaoyan

Provide a general summary of the issue here

export const Tab = /*#__PURE__*/ createLeafComponent(TabItemNode, (props: TabProps, forwardedRef: ForwardedRef<HTMLDivElement>, item: Node<unknown>) => {

https://unpkg.com/react-aria-components@1.13.0/dist/types.d.ts

🤔 Expected Behavior?

/**
 * A Tab provides a title for an individual item within a TabList.
 */
export const Tab: (props: TabProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;

😯 Current Behavior

/**
 * A Tab provides a title for an individual item within a TabList.
 */
export const Tab: (props: TabProps & React.RefAttributes<object>) => React.ReactElement | null;

💁 Possible Solution

No response

🔦 Context

No response

🖥️ Steps to Reproduce

.

Version

1.13.0

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