Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
@langemike

Description

@langemike
Issue body actions

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

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.