-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Selection clears if selected item is not visible in the list by default #3
Comments
hi @rfuhrer In order to solve this, you need to ensure that your filtered items always contains the selected item. |
FWIW I'm adding the selected items to the top of the list. I think that makes for a relatively good user experience (easier to deselect one by one and easy to see whats selected with the pane open). This also solved the above although it's not a proper "solution". |
Hi I am on version 1.8.0 I tried to use as follows I want a functionality in which a search item doesn't exist in the list then whatever the user typed is still available as Have I understood that UPDATE - I misunderstood the functionality. It clears (or not) the value entered in search box when the control goes out of focus. Is there a way that I can assign whatever is typed in the control as value of the control and then use that value to do a server side search? At the moment, while the value stays if |
@manuchadha1979 please open a new issue with an example. |
Done. Thanks - #284
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
From: Esteban Gehring<mailto:notifications@github.com>
Sent: 21 November 2020 15:16
To: bithost-gmbh/ngx-mat-select-search<mailto:ngx-mat-select-search@noreply.github.com>
Cc: manuchadha1979<mailto:manu.chadha@hotmail.com>; Mention<mailto:mention@noreply.github.com>
Subject: Re: [bithost-gmbh/ngx-mat-select-search] Selection clears if selected item is not visible in the list by default (#3)
@manuchadha1979<https://github.com/manuchadha1979> please open a new issue with an example.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFNPJQZFMNOK7SXNI53XVLTSQ7KUBANCNFSM4EUOKLAQ>.
|
I have a select search where I've got thousands of entries to choose from. To make the select render not die trying to show all of that, I changed my filter function to just return the top 10 results. This seems to break the select search. When you pick something outside of the default top 10 results it clears your selection shortly after closing the search list.
Here's an exaggerated example where I took your demo and cut the search results down to top 2: https://stackblitz.com/edit/github-ddlaqr
If you pick Bank A or B it works, but if you search for C and pick bank C, it clears the selection after you make it.
Is there maybe a better way of doing this? Or is there maybe a fix you can see that could be made to your library?
Thanks!
The text was updated successfully, but these errors were encountered: