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

Headers move to the end if sorteable=true in clom #3688

Open
gnikeht opened this issue Jan 12, 2025 · 0 comments
Open

Headers move to the end if sorteable=true in clom #3688

gnikeht opened this issue Jan 12, 2025 · 0 comments
Labels

Comments

@gnikeht
Copy link

gnikeht commented Jan 12, 2025

Describe the bug

This only happens if deployed after running npm run build script, it won't happen in IDE or local run. When the columns have sorteable attribute set to true, headers move to the bottom of the grid.

To Reproduce

  1. Create a grid and populate with data in code
  2. run npm run build
  3. deploy to your favorite server (In my case Tomcat)
  4. Browse to the page and see that headers are at the bottom.

Link to code example:
Just a column:

{ key: "dateEffective", name: "Effective Date", editable: false, sorteable: true, renderCell(props) { return props.row.dateEffective ? timeStampFormatter.format(new Date(props.row.dateEffective)) : ""; } },

Expected behavior

Headers should show on the top

Environment

  • react-data-grid version: 7.0.0-beta.47
  • react/react-dom version: 18.3.1

Additional context

@gnikeht gnikeht added the Bug label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant