-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(typeahead): inside a form causes issues #92
Comments
it means you should have
can you create a plunker for it? it sounds critical
will have to check it
may be on lostfocus, but yes |
is there a CDN or a base plunkr for ng2-bootstrap? |
I've uploaded a test in my github: https://github.com/ronzeidman/open-ng2-tests I'm always amazed by your fast responses! |
If I will be lucky, I will land system.js bundling with TS 1.8 on this weekends
hm
do my best :) |
Anyone found a solution to this problem? |
Digged into it a little bit and copy / changed something from the ngModel directive and added it to typeahead.directive.ts const formControlBinding =
CONST_EXPR(new Provider(NgModel, {useExisting: forwardRef(() => NgControl)})); and inside the directive decorator bindings: [formControlBinding] It seem to works now in both cases but my angular2 foo is to weak after just 1 week. |
I came across the same issue (1) today, thanks a lot for the fix / workaround(?) @nrehm, works for me too! You should create PR for it :) First I thought I came across this issue: angular/angular#6374, but I'm not sure if that is related, my knowledge of the Angular2 internals is also very limited. @ronzeidman: you might be happy to hear that your point 4 was merged yesterday :) #351 |
@slintes :) happy to hear. |
Workaround: Adding this to parent component (which includes typeahead) fixes the
|
@Toktik this is awesome idea! And the simplest one! |
Mh, the workaround of @Toktik didn't work for me. I didn't get the "no provider..." error anymore, but another error as soon as I start typing ( |
This should be fixed in the newest version |
just updated to RC 5 and new FormsModule, no problems anymore, thanks! |
Using v1.3.2, but the autocomplete is still not off. Can this be fixed? |
Hi,
I've encountered several issues trying to put Typeahead inside a form.
The text was updated successfully, but these errors were encountered: