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

typeahead doesn't work on input[type=email] #863

Closed
bjabes opened this issue Aug 23, 2013 · 3 comments
Closed

typeahead doesn't work on input[type=email] #863

bjabes opened this issue Aug 23, 2013 · 3 comments

Comments

@bjabes
Copy link

bjabes commented Aug 23, 2013

inputValue is set to undefined for email fields instead of to the input. There's no reason typeahead shouldn't work for a field of this type.

@hallister
Copy link

@bjabes To start we need a plunker showing the issue so we can narrow down the problem.

@pkozlowski-opensource
Copy link
Member

@bjabes AngularJS input fields won't bind model values if a a given value doesn't pass validation test. This means that you can only bind valid e-mail values when using input type="email".

I've just quickly tested and if you select a valid e-mail things seem to work alright:
http://plnkr.co/edit/uyoG1CyCUwAET8lchQrc?p=preview

Please change this plunk to expose your issue.

@pkozlowski-opensource
Copy link
Member

Woops, sorry, this is actually a legit bug (!) - or rather corner case linked to the way we observe input changes... Need to look into this.

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

No branches or pull requests

3 participants