Skip to content

autoComplete doesn't work on multiple elements with same selector #23

Open
@langemike

Description

@langemike

I just found out autoComplete doesn't work when i have multiple search fields on my page using the same "selector" option key.

I would expect to see a suggestion list below the search field i type in. But what actually happens that it only shows the last suggestion list created. This is because because the reference of the "that" variable is assigned to the last element because of the for loop.

The temporary fix i apllied is to build two autoComplete instances with both using the same options

Hopefully this can me be fixed in a future version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions