-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
Describe the bug
To Reproduce
- Create a header with a filter like the the [Header filters](example https://adazzle.github.io/react-data-grid/#/header-filters)
- Enable sorting like in the [Columns reordering[(example https://adazzle.github.io/react-data-grid/#/columns-reordering)
Expected behavior
Not sort the column
Environment
react-data-gridversion: ^7.0.0-beta.44react/react-domversion: ^18.2.0
Additional context
The problem comes from this line https://github.com/adazzle/react-data-grid/blob/b667cec545666308ec59d74580b695e344380379/src/HeaderCell.tsx#L279
onClick is on top of everything so anything you put inside the header div will be activated as soon as you click the cell, even the filter which is inside the header renderer
Video: