Observe that popup shows suggestions for the last request and not the one which is typed.
To fix this, we need to check whether the word under caret matches the input property which the server returns. And show the popup only when this matches. Discard all other responses.
To reproduce
To fix this, we need to check whether the word under caret matches the input property which the server returns. And show the popup only when this matches. Discard all other responses.