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

MatAutocompleteList - CustomStringSelector not working with default value (possible bug) #936

Open
MrVopi opened this issue Apr 25, 2023 · 0 comments
Labels
question Further information is requested

Comments

@MrVopi
Copy link

MrVopi commented Apr 25, 2023

Describe the question
Hi guys, I don't know if this is a bug or I've done something wrong. My current issue is that when I am using object in MatAutocompleteList and CustomStringSelector to define which property I want to see as string in input it is working as expected when I am starting with clear input but when I am loading data from DB and I want to set loaded value as default, instead of using value.Name as specified in CustomStringSelector it is passing object Type name to input field. This is corrected automatically once clicking in and out of the input. Any ideas?
Thank you.

Expected behavior
I would expect that default value.Name should show up on initialization.

Screenshots
MatAutocompleteList-defaultValue

@MrVopi MrVopi added the question Further information is requested label Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant