formly-js / angular-formly-website

The website for angular-formly
http://angular-formly.com
18 stars 26 forks source link

ngModelAttrs - options-disabled is not disabling the select elements #78

Open hrishi1183 opened 9 years ago

hrishi1183 commented 9 years ago

i am trying to disable the select options based on the selected group so that same group should not be selectable in further dropdowns.. but ngModelAttrs is not working as expected with options-disabled

belows is the jsbin which shows the issue http://jsbin.com/duzuce/edit?js,output

disabledGroups already holds the "Vehicle Loans" group which mean by default Vehicle Loans should be disabled in all the three dropdown which is not the case.. and based on the selection in first select.. corresponding groupd should get disabled in further choice lists

Any help would be appreciated

kentcdodds commented 9 years ago

Sorry, life's crazy busy for me right now (new baby in the house). I don't have time to help you right now. Could you please follow the instructions here to get help? http://help.angular-formly.com

Good luck!

On Fri, Sep 18, 2015, 9:29 PM Hrishikesh Moundekar notifications@github.com wrote:

i am trying to disable the select options based on the selected group so that same group should not be selectable in further dropdowns.. but ngModelAttrs is not working as expected with options-disabled

belows is the jsbin which shows the issue http://jsbin.com/duzuce/edit?js,output

disabledGroups already holds the "Vehicle Loans" group which mean by default Vehicle Loans should be disabled in all the three dropdown which is not the case.. and based on the selection in first select.. corresponding groupd should get disabled in further choice lists

Any help would be appreciated

— Reply to this email directly or view it on GitHub https://github.com/formly-js/angular-formly-website/issues/78.

ckniffen commented 9 years ago

@hrishi1183 All that the select type from angular-formly-templates-bootstrap does is perform a small wrapper around creating a