Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Typeahead "select on exact" does not work when using an expression for "label" part #6149

@matthias-ccri

Description

@matthias-ccri

Typeahead allows the format select as label for value in sourceArray. It is possible to have an expression for "label", like so: state.id as state.name + ' (' + state.id + ')' for state in states.

This works fine unless you use it with typeahead-select-on-exact. In that case, it never matches the full label expression; it breaks after the first part (at the "plus").

I figure that label expressions might just be "not supported" (yet), but I thought I'd document this issue here, for whoever else might be searching for it.

Plunker

http://plnkr.co/edit/ux1bTkJJH7j7a90e1pQf?p=preview

Versions

Angular: 1.5.5
UIBS: 2.0.1
Bootstrap: 3.3.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions