Skip to content

setting enableExpanding has no effect. #4939

Description

@wallpants

Describe the bug

Setting enableExpanding to false has no effect.

Your minimal, reproducible example

https://stackblitz.com/edit/stackblitz-starters-xwm3zz?file=src%2FApp.tsx

Steps to reproduce

  1. Select a row whilst enableRowSelection is set to true. Selection state will change.
  2. Set enableRowSelection to false. Selection state won't change if you try selecting a row.
  3. Expand a row whilst enableExpanding is set to true. Expansion state will change.
  4. Set enableExpanding to false. Expansion state will still change when the user tries to expand a row.

Expected behavior

If enableExpanding is set to false, rows should not be expandable.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS: Firefox, Edge
Fedora: Firefox, Edge

react-table version

v8.9.3

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

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