Skip to content

Fixed width is not applying for fix width column along with Full width table, Column Resizing and Column visibility. #5120

@ns-kashara

Description

@ns-kashara

Describe the bug

I have a scenario where I have to toggle the column visibility and according to it the width should be scale for non fixed width columns, But currently the fixed width column are also getting scaled to fill the space for full width table.
I am attaching the sandbox environment where I have repro the issue.

Your minimal, reproducible example

https://codesandbox.io/s/inspiring-resonance-zq6c89?file=/src/App.tsx

Steps to reproduce

  1. Hide/Toggle as many as columns to check the issue. Check with 2/3 columns to show along with selection column to view.

Expected behavior

The fixed width column like selection and row action column should not be scale when other column visibility are toggled.

How often does this bug happen?

Every time

Screenshots or Videos

Screen.Recording.2023-10-06.at.4.31.34.PM.mov

Platform

  • OS: MacOs
  • Browser: Chrome (Version 117.0.5938.132)

react-table version

8.8.5

TypeScript version

4.4.2

Additional context

Use Tailwind classes also to have full width as per provided example with tailwind version 3.2.7

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