angular-multi-select icon indicating copy to clipboard operation
angular-multi-select copied to clipboard

Selecting one option selects a different four items up (as well as that one)

Open sixteenstudio opened this issue 9 years ago • 7 comments

I'm having a really strange issue with multiple selection where (only in certain option groups) if I press one option, it selects that but also a different one which is four options above that one.

Don't suppose this issue has been spotted before? I've trawled the issues and can't find anything similar.

My output-properties attribute is set to id, which is definitely unique. I can hopefully provide a reproduced version of this if no one is able to provide assistance without it.

Thanks!

sixteenstudio avatar Nov 21 '16 18:11 sixteenstudio

@sixteenstudio ,

Would you be able to replicate this in Plunker / Fiddler so I can have a look?

isteven avatar Nov 22 '16 02:11 isteven

@isteven

http://plnkr.co/edit/dmI4lih8N3R39mk0aly5?p=preview

Some instructions inside the plunk on how to cause the issue. This is a far stripped down version of what I have, and it still occurs, eliminating the chance of anything else causing the issue.

Thanks so much for your help dude! 👍

sixteenstudio avatar Nov 22 '16 10:11 sixteenstudio

@isteven I am having this exact issue!

The plunker @sixteenstudio has created shows the problem I am having.

This is causing issues for people on my site. Is this something you are looking into?

ferrisbuellers avatar Dec 09 '16 15:12 ferrisbuellers

Thanks for the Plunker.

The directive creates it's own unique index (search indexProperty in the code) for looping. It's 5 digits random string. Since you have so many items, perhaps somehow these ID are duplicated, thus no longer unique.

I'm sorry that I haven't got chance to look further, but maybe, you can try to increase the number of digits in that unique index.

I never use that many option items with this.. probably that's why I never encountered that issue. Cheers.

isteven avatar Dec 21 '16 15:12 isteven

Thanks isteven, I have tried to up the index value, however it still does not work.

I looked and the index values are different but they still select more than one value.

ferrisbuellers avatar Jan 05 '17 15:01 ferrisbuellers

Hey guys! It was kinda tricky but I've resolved the issue on my fork!

WRinnovation avatar Feb 15 '17 16:02 WRinnovation

the problem is in this line $scope.inputModel[ inputModelIndex ][ $scope.tickProperty ] = $scope.filteredModel[ index ][ $scope.tickProperty ]

iMomen avatar May 22 '17 13:05 iMomen