Skip to content

[data grid] column headers still have columnHeader--sortable class when using disableColumnSorting #19133

@wilcoschoneveld

Description

@wilcoschoneveld

Steps to reproduce

Steps:

  1. Open this link to live example: https://mui.com/x/react-data-grid/sorting/#for-all-columns
  2. Inspect the column headers

Current behavior

All column headers have MuiDataGrid-columnHeader--sortable applied

Expected behavior

Column headers should not have MuiDataGrid-columnHeader--sortable applied

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: sortable disableColumnSorting

Order ID: 96051

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature: SortingRelated to the data grid Sorting featuregood first issueGreat for first contributions. Enable to learn the contribution process.scope: data gridChanges related to the data grid.support: pro standardSupport request from a Pro standard plan user. https://mui.com/legal/technical-support-sla.type: bugIt doesn't behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions