Skip to content

selection not changing when initial values set #28

Open
@gvandenbosch

Description

@gvandenbosch

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions