Skip to content

RAC Table uses incorrect default disabledBehavior #9040

@abeljohn

Description

@abeljohn

Provide a general summary of the issue here

In the JSDoc for RAC Table, the disabledBehavior has a default of 'selection', however it is actually defaulting to 'all'.

🤔 Expected Behavior?

Based on the default in useTableState, the JSDoc is correct and the RAC Table should set the disabledBehavior to 'selection' when it is not specified

😯 Current Behavior

The default in useTableState is bypassed by the RAC Table setting UNSAFE_selectionState, which does not correctly default the disabledBehavior to 'selection'

💁 Possible Solution

Pass the default value to useMultipleSelectionState in RAC Table.

🔦 Context

No response

🖥️ Steps to Reproduce

https://codesandbox.io/p/sandbox/v5twrk

Version

RAC 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 15

🧢 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