Way to stop ajax request when enter is pressed?
Opened this issue · 0 comments
ahbruinsma commented
Is it possible to stop the ajax function of doing stuff when someone pressed enter before the search gave any results? I'm using the textext as a helper, but users are also able to enter text manually.
I tried an .on({enterKeyPress: function(e) {}}) construction, but that doesn't work, it still calls the ajax function to retrieve results.
Thanks!