Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataTable: Redefine column width after resizing a column manually. #5123

Closed
vbranquinho opened this issue Oct 20, 2023 · 1 comment
Closed
Assignees
Labels
Resolution: By Design The behavior in the issue is by design and the component exhibits the expected behavior
Milestone

Comments

@vbranquinho
Copy link

Describe the bug

Considering that there is a table with columns with a predefined size through an inline style defined for the width and max-width. After the column has been resized manually, an "!important" CSS style overrides the width and max-width of the column, not allowing it to revert to the original predefined size.
Is there any way to solve this problem? Perhaps a possible solution would be for this override to be done in an inline style.

Reproducer

https://codesandbox.io/s/primereact-demo-forked-jjtqkd?file=/src/App.tsx

PrimeReact version

9.6.2

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Click on the resize button in order to resize the width of the columns.
  2. Resize a column manually.
  3. Click on the resize button and check that no columns are resized.

Expected behavior

When the resize button is clicked, the width and max-width of the column should change as it happens before the manual resize is done.

@vbranquinho vbranquinho added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 20, 2023
@melloware
Copy link
Member

I am not positive but I don't think you can mix and match fixed columns with the resizable columns feature.

@melloware melloware added Resolution: By Design The behavior in the issue is by design and the component exhibits the expected behavior and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Oct 20, 2023
@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
@habubey habubey added this to the 10.0.8 milestone Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: By Design The behavior in the issue is by design and the component exhibits the expected behavior
Projects
None yet
Development

No branches or pull requests

4 participants