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

[typeahead]when I use 'template-url' with 'typeahead-show-hint' makes conflict. #5357

Closed
coolwine opened this issue Jan 28, 2016 · 1 comment

Comments

@coolwine
Copy link

Here is plnkr.

when i click to try to use typeahead.

makes a some error.

Cannot read property 'length' of undefined , ui-bootstrap-tpls-1.1.1.js:6049

I think the error because of 'template-url' not load yet. but show-hint option going to show some data before load finishing.

so i fix my code.

if (showHint) {var firstLabel = scope.matches[0].label; if(!inputValue)return;......}

@wesleycho
Copy link
Contributor

Did a little looking into, this is only a problem when min-length="0" is combined with show-hint="true". This should be easy to fix if I had to guess.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants