Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the current input has trailing spaces - may be added by the user or by some user javascript - the list is not updated even when the non-space input content changed #466

Open
Wikinaut opened this issue Apr 10, 2022 · 0 comments

Comments

@Wikinaut
Copy link

Wikinaut commented Apr 10, 2022

I noticed, that when the current input has trailing spaces - added intentionally for allowing further additional user input - the easyautocomplete is not triggered to fetch or update the list when the existing (non-empty) part of the line is changed.

How to reproduce using the very first example on your page http://easyautocomplete.com/ :

  • Type al to get Albania.
  • Click onto Albania in the list
  • (Albania is now shown in the input)
  • Position the cursor at the end
  • Add a trailing space (shown here for the purpose of clarity as _)
  • (list still shows Albania_, which I regard as fully correct in the sense of a leading-or-trailing-space-ignoring search)
  • Add x into Albania_: Albaxnia_
  • (list is correctly emptied, because Albaxnia_ does not exist in the list of results)

Now

  • Now remove the x from Albaxnia_

Bug

  • The list is now not updated with a new search.

Expected behaviour

  • any relevant non-space change of the input line should trigger the list to be fetched and shown
@Wikinaut Wikinaut changed the title When the current input has trailing spaces - may be added by some user javascript - the list is not updated When the current input has trailing spaces - may be added by the user or also by some user javascript - the list is not updated Apr 10, 2022
@Wikinaut Wikinaut changed the title When the current input has trailing spaces - may be added by the user or also by some user javascript - the list is not updated When the current input has trailing spaces - may be added by the user or also by some user javascript - the list is not updated even when the non-space input content changed Apr 10, 2022
@Wikinaut Wikinaut changed the title When the current input has trailing spaces - may be added by the user or also by some user javascript - the list is not updated even when the non-space input content changed When the current input has trailing spaces - may be added by the user or by some user javascript - the list is not updated even when the non-space input content changed Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant