-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
Description
Describe the bug
When user type key word in filter when he hit space instead of space char as next sign he trigger column sorting functionality. User can not enter space from keyboard, he can only paste it into filter to be able to use it.
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)
Link to code example:
Expected behavior
when typing in filter sign user hit space this should not trigger column sorting
Environment
react-data-gridversion: ^7.0.0-beta.44react/react-domversion: ^18.2.0
Additional context
code line responsible for effect:
https://github.com/adazzle/react-data-grid/blob/b667cec545666308ec59d74580b695e344380379/src/HeaderCell.tsx#L280
https://github.com/adazzle/react-data-grid/blob/9aa46269793cda576f60d2c6fb03d250028444a3/src/HeaderCell.tsx#L202
ronneldavis