valor-software / ng2-select

Angular based replacement for select boxes
http://valor-software.github.io/ng2-select/
MIT License
675 stars 587 forks source link

I need to add an on click event for multiselect #908

Open geewhizbang opened 6 years ago

geewhizbang commented 6 years ago

In my case, I have a bug that the control lets you click when more than three items have been multi-selected, which is the limit for our application. We can prevent this item from being selected after they already have done it, but it would be a better UI experience if we could detect this before they have even bothered to do the wrong thing.

If it was our own code, I could easily add an on click event, but I'm not sure how I'm supposed to connect the event inside yours.