Skip to content

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

@Wikinaut

Description

@Wikinaut

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions