angularjs-dropdown-multiselect icon indicating copy to clipboard operation
angularjs-dropdown-multiselect copied to clipboard

Cannot select more than one item even if selectLimit is set

Open jmarrec opened this issue 8 years ago • 2 comments

This might be just an issue due to the fact that I'm a noob in the ecosystem, but I cannot figure out a way to make multi select work... I can see that the selectionLimit is correctly set since I see "/ 4 checked" in the dropdown menu. But if I select a second value, it doesn't get appended.

Maybe this is a compat issue between the versions I'm using?

I created a jsFiddle trying to show the behavior I'm seeing. https://jsfiddle.net/jmarrec/916cp5gr/3/

For the record I use Firefox 54.0 64bit on macOS.

Let me know if you need anything else please. Thanks!

(PS: You might want to close #387 and move the discussion here considering how the issue is (not) worded...)

jmarrec avatar Jun 29 '17 18:06 jmarrec

I could have been clearer: I'm trying to use the Custom Template Format (example 19) from the docs

The thing is that if I open the dev console on the docs page, and access the $scope and set the $scope.example19data to my resultsWithInfo array (in the jsfiddle), it works as intended... I'm guessing this is a version conflict or I'm missing a dependency?

Any tip would be greatly appreciated, thanks!

jmarrec avatar Jun 30 '17 09:06 jmarrec

I finally made it work. https://jsfiddle.net/jmarrec/916cp5gr/

Needed 2.0.0 beta to make it work, also need to put selected_model = [] and not selected_model = {} like in the doc, because otherwise it throws "$scope.selectedModel.indexOf is not a function" here

jmarrec avatar Jun 30 '17 10:06 jmarrec