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

material autocomplete does not filter #878

Closed
rattkin opened this issue Nov 5, 2018 · 4 comments
Closed

material autocomplete does not filter #878

rattkin opened this issue Nov 5, 2018 · 4 comments

Comments

@rattkin
Copy link

rattkin commented Nov 5, 2018


[x] Bug / Regression
[ ] Feature Request / Proposal
[ ] Question

I'm using


NG Dynamic Forms Version: sample version
http://ng2-dynamic-forms.udos86.de/sample/index.aot.html#/material-sample-form

[ ] Basic UI
[ ] Bootstrap UI  
[ ] Foundation UI
[ ] Ionic UI
[ ] Kendo UI
[x] Material  
[ ] NG Bootstrap
[ ] Prime NG

Description

The material autocomplete does not filter. I think You already fixed this? #829

@udos86
Copy link
Owner

udos86 commented Nov 10, 2018

@rattkin

Before filing a bug please provide some insight in how you're trying to achieve this.

Are you filtering via list Observable?

@rattkin
Copy link
Author

rattkin commented Nov 10, 2018

I'm going to Your example: http://ng2-dynamic-forms.udos86.de/sample/index.aot.html#/material-sample-form
Autocomplete doesn't work. When I download the tutorial source, it does not work as well.

Now when you mention it, there is no filtering function. Do you please have an example how to add filtering?

@Karamuto
Copy link
Collaborator

Karamuto commented Dec 7, 2018

Hello @rattkin ,

please provide as requested more information, like you form model, and how you try to achieve the filtering.

@udos86
Copy link
Owner

udos86 commented Dec 22, 2018

@rattkin

As of now Autocomplete does not provide a default filtering mechanism. It's up to you to implement it based on your requirements.

Simply make use of valueChanges Observable of your autocomplete form control and update the list property of your DynamicInputModel based on the user input.

@udos86 udos86 closed this as completed Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants