angular-multiselect
angular-multiselect copied to clipboard
Clicking on list item should not hide list
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; } ...
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.
I had the same problem and the code from mvanderkolff fixed it.
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.
If someone could make a PR for it, it would be great!