Skip to content
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

fix(typeahead): Added form support #723

Merged
merged 1 commit into from
Jul 14, 2016

Conversation

Dinistro
Copy link
Contributor

Typeaheads should work in forms now.

@Dinistro
Copy link
Contributor Author

I can add a hack to fix this, but it would be really, really ugly:

(this.control.control as FormControl).updateValue(valueStr);

The problem is, that this.control.control is not a FromControl everytime

@valorkin
Copy link
Member

This one resolves issue completely

    this.ngControl.viewToModelUpdate(valueStr);
    (this.ngControl.control as FormControl).updateValue(valueStr);

@valorkin valorkin force-pushed the fix(typeahead)-typeahead-in-forms branch from 9fa6223 to cef89dc Compare July 14, 2016 11:48
@valorkin valorkin merged commit fa54e46 into development Jul 14, 2016
@valorkin valorkin deleted the fix(typeahead)-typeahead-in-forms branch July 14, 2016 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants