You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57
Current behavior
When typing into the filter input, the data returned by onValueChange is the previous set of filtered data. If I type a single character, the entire data set is returned. If I type a second character, the data returned is filtered only using the first character, and so forth. The data displayed in the table is correct, only the callback is wrong.
Expected behavior
The data returned by onValueChange reflects the current input of the filter field.
Minimal reproduction of the problem with instructions
Create a custom filter element with simple InputText. Print the data returned from onValueChange to the console.
React version:
16.6.3
PrimeReact version:
3.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
The text was updated successfully, but these errors were encountered:
dolbeew
changed the title
DataTable onValueChange callback one step behind when using custom InputText filter
DataTable onValueChange callback one key press behind when using custom InputText filter
Feb 21, 2019
I'm submitting a ...
Plunkr Case (Bug Reports)
https://next.plnkr.co/edit/8DCDxrHo1Z0g44ix?preview
Current behavior
When typing into the filter input, the data returned by onValueChange is the previous set of filtered data. If I type a single character, the entire data set is returned. If I type a second character, the data returned is filtered only using the first character, and so forth. The data displayed in the table is correct, only the callback is wrong.
Expected behavior
The data returned by onValueChange reflects the current input of the filter field.
Minimal reproduction of the problem with instructions
Create a custom filter element with simple InputText. Print the data returned from onValueChange to the console.
React version:
16.6.3
PrimeReact version:
3.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
The text was updated successfully, but these errors were encountered: