When using a PrimeReact DataTable with cell editing mode (editMode="cell") and a Dropdown as the cell editor, there is an issue when trying to interact with the filter feature of the Dropdown.
The issue occurs as follows:
Clicking on an editable cell that uses a Dropdown opens the editor as expected.
If the Dropdown has filtering enabled (filter), typing in the filter input causes the DataTable to detect a loss of focus on the cell, prematurely closing the editor.
This prevents the user from selecting a filtered option because the Dropdown closes as soon as focus is lost, forcing the selection of the currently displayed value instead of allowing the user to select a new one.
When a user interacts with the filter input of a Dropdown in cell editing mode, the editor should remain open until the user makes a selection or explicitly moves focus away from the cell (e.g., by clicking outside the Dropdown).
Describe the bug
When using a PrimeReact DataTable with cell editing mode (editMode="cell") and a Dropdown as the cell editor, there is an issue when trying to interact with the filter feature of the Dropdown.
The issue occurs as follows:
Reproducer
https://stackblitz.com/edit/vitejs-vite-z4vrkd?file=src%2FApp.tsx
System Information
Steps to reproduce the behavior
No response
Expected behavior
When a user interacts with the filter input of a Dropdown in cell editing mode, the editor should remain open until the user makes a selection or explicitly moves focus away from the cell (e.g., by clicking outside the Dropdown).