Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

'undefined' when using input. #178

Closed
@hanifvirani

Description

@hanifvirani

Things work fine when using select with options and ng-repeat, but there is a bug when using input along with a query. Selecting an option results in 'undefined' being displayed.

Plunker: http://plnkr.co/edit/gTy17Aym7MRseWNwrsEy?p=preview

The bug can also be seen in ui-select's demo project itself.

I did some debugging and found that on selecting an object, the watch on tAttrs.ngModel is triggered twice, once with a string and once with an object. If I return from the watch in the first case, everything works fine.

Related issue: #134

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