-
-
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
[BUG] - Previously selected options getting deselect if modify the search #270
Comments
This Can be resolved by putting the below lines in src/app/mat-select-search/mat-select-search.component.ts(Line no. 661).
Explanation: The issue was occurring due to when the user does the filtering and then selects any value and then does some more filtering for another selection the if condition was failing. Find Solution at this fork https://github.com/pranavneeraj/ngx-mat-select-search. |
Thanks for reporting and proposing a solution. Would you like to file a PR? |
Yes, But for filing PR will need permission for the repo. Thanks |
We are also facing the same problem and the above proposed solution seems to work with our problem too. |
@pranavneeraj you can simply fork this repo, create a branch with the fix in the forked repo, and file a PR against the original repo |
@macjohnny Please check #271. |
@pranavneeraj somehow I am unable to reproduce the issue: ngx-mat-select-search-issue-270.webm.zip can you please post a screen video of the reproduction steps? |
@macjohnny Please refer below recording for reference. |
thanks for the screen video, I can now reproduce the issue. |
…initial selection prior to filtering fixes #270
the fix was released with version |
Thanks for your quick response. |
Describe the bug:
Previously selected options getting deselect if modify the search
To Reproduce:
Go to https://stackblitz.com/github/bithost-gmbh/ngx-mat-select-search-example
Scroll down to 'Multiple selection with Select All Checkbox'
Enter 'Bank C' in search
Click the select 'Bank C'
Select text 'Bank C' from search by double click on whole text or backspace and Change to 'Bank F'
Click the select 'Bank F'
Note the previously selected options have been removed
Expected behavior:
I expect Bank F should get selected from the list of options, with none of the currently selected options removed.
Addition information:
Getting this issue in:
ngx-mat-select-search version 3.1.0
angular-cli 10.0.5
angular-material 10.1.3
The text was updated successfully, but these errors were encountered: