-
Notifications
You must be signed in to change notification settings - Fork 23
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
fixed issues with dynamic item collections in bootstrap-select #39
Conversation
Hello and thanks for the PR, I thought I would have time to review it today but I was busy releasing a new version of my other repo (Aurelia-Slickgrid). I hope to take a look at that in the coming days. Thanks again |
So I started testing this and here's a few observations
The 1. is not so much of a concern since I still think the issue #34 is related to a problem with the 3rd lib itself.
EDIT - value.bind="value"
+ value.bind="selectedValue" and since then the multiple selection is broken because of that simple change. It's a bit strange, because I don't actually use it (which is maybe the cause of some of #34 issues). If I change it back to the previous value, it works but then the collection change doesn't work anymore... EDIT 2 View - value.bind="SelectedValue" ViewModel collectionChangedObserver(newCollection, oldCollection) {
+ setTimeout(() => {
this.domElm.selectpicker('refresh');
+ });
} With this edit, it might not be great to see the Unless you have other comments, would you mind updating your code with the last changes I just wrote? Also my |
Since I had no news from your side, I made the changes that I mentioned to fix multiple selection and collection delay issue. I will release a patch version 1.1.2 Thanks a lot for the contributions |
@ghiscoding Thanks for merging the changes and sorry for not answering. I am quite busy at the moment, maybe I will look at how to fix the remaining issues when I have more time and create another PR! |
…oding#39) * fixed issues with dynamic item collections in bootstrap-select * remove unnecessary`value.bind` * fix multiple selection and add refresh delay to fix collection change
This PR fixes issues that I faced with dynamic collections and that are probably related to #34 .
Attached you find the example project that I used to work on this issue: aurelia-select-value-observer-test.zip.
With my changes applied, the initially selected country in the dropdown is correctly set to 'Italy'.