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 with typeahead-min-length="0" does not appear when clearing the text box. #6218

@kbrimington

Description

@kbrimington

In a typeahead with minimum length configured to zero, if the user selects a value, then returns to the input and taps the browser-provided X to clear the box, the input is now focused and empty; however, the list box is hidden.

Typing and deleting a character at this point opens the box. Leaving and re-entering the input field also opens the box.

I observed the behavior in IE11, in a typeahead using the custom popup template from the demos. I have not verified other browsers or without templates.

<input type="text"
       ng-model="model"
       placeholder="Select an item"
       uib-typeahead="item.Name for item in items | filter:{Name:$viewValue}"
       typeahead-editable="false"
       typeahead-popup-template-url="customPopupTemplate.html"
       typeahead-min-length="0" />

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