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

Typeahead ngModel must be undefined for min-length="0" to work #6283

@matthias-ccri

Description

@matthias-ccri

Bug description:

What should happen:
When the attribute typeahead-min-length="0" is present, focusing on the field should trigger the results dropdown to display. This works only when the ngModel is set to undefined, but it does not work when it is set to null.

Plunkr:

https://plnkr.co/edit/dqqcVIGFcVFzvqn2fu4t?p=preview
This is the stock typeahead Plunkr, with only one line changed in example.js:
$scope.customSelected = null;

Versions

Angular: 1.5.8
UIBS: 2.2.0
Bootstrap: 3.3.7

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