-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot programmatically change disabled ion-checkbox or ion-toggle #9730
Comments
Using
Changes in the model do not effect the disabled toggle |
I'm running into this as well. Seems like disabled should only stop propagation of the click events and not the checked setter or writevalue function. Perhaps like this: jamesgroat@4cf92e9 (not actually tested and it is possible my commit misses some other side effect ...) |
Yeah, it should just be removing |
Please ago ahead -- I don't feel like I'm setup enough to correctly test changes. |
This will be in the next release. I released a nightly with this fix in it, could you please try it out and let me know if you notice any problems?
Thanks! :) |
@brandyscarney: I tested my project with ionic-angular@2.0.0-201702031703: Bug is fixed, no other problems found, thank you! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version:
[ ] 1.x
[x] 2.x
I'm submitting a ...
[x] bug report
[ ] feature request
[ ] support request
Current behavior:
The visible checked state of a disabled ion-checkbox or ion-toggle cannot be changed programmatically.
Expected behavior:
Although clicking a disabled ion-checkbox or ion-toggle obviously should have no effect, I expect to be able to change the checked state programmatically.
Steps to reproduce:
Other information:
Programmatically changing the text of a disabled ion-input works as expected: http://plnkr.co/edit/ZTPqKlzodr5HECR3z6MN?p=preview
Ionic info:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 3.13
Node Version: v6.9.2
Xcode version: Not installed
The text was updated successfully, but these errors were encountered: