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

Typeahead does not call $apply when resetting errors with typeahead-editable="false" #6032

Closed
Siggen opened this issue Jun 20, 2016 · 1 comment

Comments

@Siggen
Copy link
Contributor

Siggen commented Jun 20, 2016

Bug description:

When configured with typeahead-editable="false", typeahead doesn't call $apply when resetting 'editable' and 'parse' errors on blur. As a consequence, any template depending on $invalid ou $error tag is not (always) updated.

Link to minimally-working plunker that reproduces the issue:

http://run.plnkr.co/plunks/oI6OeiiZg5LkeNQMG3n3/

To reproduce

  1. type 'www' in typeahead
  2. hit tab
  3. => error flag is cleared (OK)
  4. type again 'www' in typeahead
  5. hit tab
  6. => error flag is not cleared (KO)

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.6

UIBS: 1.3.3

Bootstrap: 3.3.5

@Siggen
Copy link
Contributor Author

Siggen commented Jun 20, 2016

I'll add a PR shortly.

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

No branches or pull requests

1 participant