leocaseiro / angular-chosen

AngularJS Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a AngularJS way
http://leocaseiro.github.io/angular-chosen/
MIT License
682 stars 248 forks source link

Multiple Chosen drop-downs while using the same list of items #264

Closed bgadiel closed 5 years ago

bgadiel commented 5 years ago

hi, This issue is a continuation of issue #234 - which I am not able to execute as desired. My goal is to be able to use the same list of items for multiple chosen drop-downs. Example: once I select "Australia" for the first dropdown, all other drop-downs will be no longer have this option. If I deselect it, than all dropdown will show this back again.

Following your example, I created this plnkr: https://plnkr.co/edit/fzVUcDTHOvbBTiHVcrAz?p=preview

Any ideas what am I missing here?

thanks.

VanTanev commented 5 years ago

This is not a bug in angular-chosen. You should consider asking a question like this on stack overflow instead.

The base approach outlined in #234 will work, but there are edge cases you will have to consider.

Here is my solution. https://next.plnkr.co/edit/UbTKRmFkcazRBY1N

Again, please use stack overflow for questions of this type in the future.

bgadiel commented 5 years ago

Thank you, that example helped me a lot. FYI - nobody respond back in stack-overflow for angular-chosen questions. That's why I post my questions here. why not label it a 'question'? thanks anyway.

VanTanev commented 5 years ago

@bgadiel I'm helping maintain this module in my spare time. Asking me to also solve project specific issues, that are tangential to angular-chosen is a bit much. I'm guessing you're using angular-chosen in a commercial project, as are most people who come here asking for help.

It's really not fair to ask us to solve problems in your paid projects for free.

Therefore, issues should only be opened for actual bugs in the module.

bgadiel commented 5 years ago

yes, you have a point there. But isn't it the nature on all other git projects as well?

בתאריך יום ג׳, 16 באפר׳ 2019, 7:51, מאת Ivan Tanev ‏< notifications@github.com>:

@bgadiel https://github.com/bgadiel I'm helping maintain this module in my spare time. Asking me to provide tech support for free it a bit too much. I'm guessing you're using angular-chosen in a commercial project, as are most people who come here asking for help.

It's really not fair to ask us to solve problems in your paid projects for free.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/leocaseiro/angular-chosen/issues/264#issuecomment-483510110, or mute the thread https://github.com/notifications/unsubscribe-auth/AKc-1RzBc6VMC1hbTeO99z26kwmGKnlCks5vhVbCgaJpZM4cjv-k .

VanTanev commented 5 years ago

It very, very much is. Our whole industry is built upon the unpaid labor of OSS maintainers.

I don't know what the solution is. The answer I've come up for my projects is to be a bit harsher, and value my own time. I have a family and a job, and they should take priority.

bgadiel commented 5 years ago

Don't get me wrong, I fully support youre side. I also think that once I decided to contribute my time and energy to an open source project or community (not recommend if you have small kids :-)), it doesn't makes difference what's the origin of the question or bug. On the contrary, I very much like the project to be in production level as much as possible ( as I believe questions and bugs takes the project there ).

Thanks Ivan!

בתאריך יום ג׳, 16 באפר׳ 2019, 8:37, מאת Ivan Tanev ‏< notifications@github.com>:

It very, very much is. Our whole industry is built upon the unpaid labor of OSS maintainers.

I don't know what the solution is. The answer I've come up for my projects is to be a bit harsher, and value my own time. I have a family and a job, and they should take priority.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/leocaseiro/angular-chosen/issues/264#issuecomment-483518204, or mute the thread https://github.com/notifications/unsubscribe-auth/AKc-1Yi8FOuFHCpctMF6ffKrMHPVTqZgks5vhWGTgaJpZM4cjv-k .