Problem with deleting character in textfield, backend does not notice

Hi guys,
I have the following problem. I have two search fields for a table and a search button to trigger the search. Actually everything works great. But recently I noticed a problem when deleting characters from one textfield and jumping after this to the other search field. When I am now triggering the search, the backend has still the old value of the search textfield
and It does not notice that the characters of the field has been deleted.
Anyone with the same issue? Or anyone with some useful hints how to solve this problem?

Could you provide an example? Perhaps you need to call setImmediate(true)?