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

selection not changing when initial values set #28

Open
gvandenbosch opened this issue Dec 18, 2016 · 5 comments
Open

selection not changing when initial values set #28

gvandenbosch opened this issue Dec 18, 2016 · 5 comments

Comments

@gvandenbosch
Copy link

gvandenbosch commented Dec 18, 2016

Hello,

I have a list of cuisines and set the the cuisines that should be set initially with an AJAX call and set them in the model array like this:

$scope.cuisines.push(response.data.cuisine1);
$scope.cuisines.push(response.data.cuisine2);
$scope.cuisines.push(response.data.cuisine3);

This nicely shows the selected values.

However when I remove selected cuisines and click new ones the model cuisines is not updated anymore.

The multiselect line is as following:
<multiselect ng-model="cuisines" show-search="true" search-limit="10" options="options" selection-limit="3"></multiselect>

@atentis
Copy link

atentis commented Feb 6, 2017

@gvandenbosch Did you figure this out? I am having the same issue. It doesnt even work after a simple timout for me.

@bentorfs Are you still supporting this control?

@bentorfs
Copy link
Owner

bentorfs commented Feb 6, 2017 via email

@midhunadarvin
Copy link

#60

@midhunadarvin
Copy link

@bentorfs Can you check this #18 . I am having this issue of not updating the select field upon page load. It only works if I click on it.

@labrute
Copy link

labrute commented Jan 24, 2019

@midhunadarvin The drop down label is not updated until the component is redraw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants