DataTable: keep focus on filter input #2449
Unanswered
majagrubic
asked this question in
PrimeReact
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Prime React Datatable. I would love to keep built-in controls for filtering and pagination, but have filtering and pagination server side.
I am running into a small problem: when a user inputs something in the filtering input, a new request is made to the server, which reloads the data in the table (expected). However, when that happens, the focus from the input field is lost; in order to continue typingm the user needs to click back to the field they were previously typing into; this leads to a very poor user experience.
Is there a simple way to keep focus on the filter input fields when data reloads, without writing my own controls?
Simplified code:
Beta Was this translation helpful? Give feedback.
All reactions