-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
alwaysRestoreSelectedOptionsMulti option not respected #356
Comments
the description of ngx-mat-select-search/src/app/mat-select-search/mat-select-search.component.ts Lines 196 to 200 in a75373e
this refers to the
setting
That's correct, and potentially explain the problem you are trying to solve in the issue.
Since there is a demo app inside this project, running
will start up a demo app that can be accessed in the browser via the url You can then modify the code in the examples src/app/examples as well as the library itself src/app/mat-select-search to test your changes. If you want to build the library, run
which will create a folder see also https://github.com/bithost-gmbh/ngx-mat-select-search#development |
Thank you for the detailed reply. So I have some behaviour where the user filters the options and upon hitting enter key we would like the filtered options to be selected and any previous selections to be unselected. Is this possible with the latest version of the library? This behaviour worked in version |
@jamiemac87 by not setting However, after if you want, we can introduce an option to achieve the behavior you intend to implement. Feel free to send a PR. |
@jamiemac87 any update here? |
@macjohnny sorry about the late reply. Work has been busy so not had much time to dedicate to my fix. I have a draft MR up if you wanted to have a quick look. It accomplishes what I set out in #356 (comment) but does not introduce a new option so may not be the desired implementation and I have not done any thorough testing other than run the app locally to check for regressions |
closing due to inactivity. feel free to update and i will reopen |
I have an issue in my app that I think would be resolved if the option
alwaysRestoreSelectedOptionsMulti="false"
was being respected. However it looks as though we also add the following condition(this._formControl.value && this._formControl.value.length)
when determining if selected options should be restored. See here.Is there a reason for the additional condition?
I would like to test out potential fixes locally but I have never really contributed to any open source work before. Would someone be able to direct me to any resources that might help me understand how I would go about this. My basic understanding is I would fork the repo to make my changes and create a pull request from there. However how would I go about building the library and pointing my local app to use my version of the library?
The text was updated successfully, but these errors were encountered: