JumpLink / angular-toggle-switch

AngularJS Toggle Switch
http://jumplink.github.io/angular-toggle-switch/
MIT License
68 stars 37 forks source link

Disabled switch still reacts on clicks #23

Open mikhailmelnik opened 8 years ago

mikhailmelnik commented 8 years ago

Seems like scope.onChange(); from line 50 should be moved inside the check for disabled state. At the moment even if I make switch disabled it still toggles ng-model value. Also disabled switches still have focused border.

djsharma commented 8 years ago

I do also noticed that disabled do not work. ng-disabled directive should be there