angular-multiselect icon indicating copy to clipboard operation
angular-multiselect copied to clipboard

Clicking on list item should not hide list

Open mvanderkolff opened this issue 11 years ago • 4 comments

When clicking on an item in a multiselect list, it should be the case we can prevent the hiding of the dropdown list. This allows a user to select several items without reopening the list each time.

My method for implementing this is (at line 245): function clickHandler(event) { if (elementMatchesAnyInArray(event.target, element.find(event.target.tagName))) { element.addClass('open'); return; } ...

mvanderkolff avatar Feb 08 '14 04:02 mvanderkolff

It auto hides for single select and for multiple it will remain open until clicked outside. I tested in Chrome and it is working as intended.

amitava82 avatar Feb 17 '14 08:02 amitava82

I had the same problem and the code from mvanderkolff fixed it.

tenthe avatar Mar 06 '14 21:03 tenthe

although this is working fine in the plnkr example, when using the component inside our app we see this issue. the solution by mvanderkolff fixed it.

naory avatar Apr 02 '14 18:04 naory

If someone could make a PR for it, it would be great!

amitava82 avatar Apr 02 '14 18:04 amitava82