-
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
ng-change trigger before model changed. #1741
Comments
Closes #1349, #1741 BREAKING CHANGE: ion-toggle no longer has an isolate scope. This will break your toggle only if you were relying upon the toggle having an isolate scope: if you were referencing `$parent.value` as the ng-disabled attribute, for example. Change your code from this: <ion-toggle ng-disabled="{{$parent.isDisabled}}"></ion-toggle> To this: <ion-toggle ng-disabled="{{isDisabled}}"></ion-toggle>
Fixed. Thank you. |
I am not sure if this issue has been fixed. Please take a look at this codepen example - the value in the console does not match the value on the page |
I can confirm it is till broken in the nightly builds. |
Just wanted to confirm that I've also just run across this. If pointed in the right direction I'd be happy to contribute to fix this! |
This appears to be an issue in Angular? And here's a great example of it, watch the console logs: |
Discussion around this on Stack Overflow too |
Is it just radio buttons? It looks like they weren't a part of @ajoslin's fix. I think they should be added so that none of our form element directives have an isolated scope. Note, this will be a big breaking change though. Maybe there's a simple temporary fix? |
Hey @perrygovier this is still a problem with toggle (in 11). Looks like you just addressed radio? Would you prefer a new issue or to keep on this one? |
|
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. |
Check the codepen http://codepen.io/imsingh/pen/nEaCo .
See the console. It shows wrong value in console.log when using ion-radio. It shows correct value with simple radio element.
The text was updated successfully, but these errors were encountered: