DataTable HeaderCell: menu-type text filter does not accept spaces if the column is sortable #7459
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Describe the bug
If a DataTable column is sortable and has a simple text filter applied in "menu" style, then Spaces will not be allowed to be entered into the text input. This is prevented by a preventDefault around this line of code:
primereact/components/lib/datatable/HeaderCell.js
Line 176 in 5e276d8
Confirmed there is a workaround:
Reproducer
https://stackblitz.com/edit/gbe2jc?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
Observe: "TestTest" without the space is displayed as the entered text. The space is lost.
Expected behavior
The entered text should be "Test Test" with a space.
The text was updated successfully, but these errors were encountered: