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

Columns are sorted when clicking header filters #3521

Open
mordonez-me opened this issue Jun 6, 2024 · 1 comment
Open

Columns are sorted when clicking header filters #3521

mordonez-me opened this issue Jun 6, 2024 · 1 comment
Labels

Comments

@mordonez-me
Copy link

Describe the bug

To Reproduce

  1. Create a header with a filter like the the [Header filters](example https://adazzle.github.io/react-data-grid/#/header-filters)
  2. 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-grid version: ^7.0.0-beta.44
  • react/react-dom version: ^18.2.0

Additional context

The problem comes from this line

onClick={onClick}

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:

Monosnap.screencast.2024-06-06.08-43-19.mp4
@mordonez-me mordonez-me added the Bug label Jun 6, 2024
@balaji-sivasakthi
Copy link
Contributor

Share Codepen link, I would be more helpful

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

2 participants