-
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
bug: bug: Radio buttons have broken logical and visual state on iOS9 device #4347
Comments
Any progress with that issue? It makes nearly all my apps unusable :-( |
Working on it now |
Seems to be a problem with tilde combinator (~). Using plus (+) fixed the problem. |
@zarko-tg could you pull down the nightly builds and give it a test please? |
I would but it's weekend here already and I don't have a Mac at home (yet). |
I experienced the same issue, seems to be fixed in the nightly builds. |
Checkboxes do work again, great! But there is still one thing wrong. Custom icons are not working. I am using icon="ion-ios-checkmark-outline", but ion-checkmark is displayed. |
@mahnuh alright, I know what that is. Give me a sec |
@mahnuh do you mind pulling down the nightly builds again and trying that? Should be good now. |
Works like charm! Thanks @mhartington, you are awesome! |
I just tried to reproduce this on the iOS Simulator ( I forked the original pen and changed Ionic nightly to 1.1.0 (which still uses I know that you guys already changed Thanks! |
@gabrielmaldi I was still able to break it in ios9 GM as well as ios 9.1 beta 1, so I think it's safe to say it is still broken. |
@mhartington I'll take a deeper look into it then, thanks! |
This issue was closed, but is there a fix? Stuck trying to get this working in an app right now. |
Just discovered this in my Ionic app as well. Any updates? Tmp workarounds? |
Yes, this has been fixed in the nighty builds. You read more here. http://blog.ionic.io/preparing-for-ios-9/ |
Awesome, thanks @mhartington, you guys rock! |
As a quick fix, the following code did the job for me. /**
* There is a problem with radio buttons on iOS9
* where Ionic's '~' combinator for radio button styles
* doesn't work. Changing it into a '+' combinator fixes it.
* n.b. might be fixed in later builds
*/
.item-radio input {
&:checked + .item-content {
background: #f7f7f7;
}
&:checked + .radio-icon {
visibility: visible;
}
} |
@mhartington I am still having issues with radio buttons in iOS 9.1. I updated to the latest Ionic master, and there was no improvement. A touch on an un-active radio doesn't select it, but a touch on an active radio selects the other un-active radio. ng-model seems to register correctly though, so it's just the styling. System info: |
I'm experiencing the same issue as @jonalling |
@TomDoesRUG I was able to use the "ion-radio-fix" to make it work for now if you need a solution. |
Same issue here, using directive… <ion-radio class="no-border bg-white" ng-model="$parent.model" ng-value="null" icon="icon-check-circle positive">{{ t.everything }}</ion-radio>
<ion-radio class="bg-white" ng-repeat="option in options | orderBy: 'label'" ng-model="$parent.$parent.model" ng-value="option.value" icon="icon-check-circle positive">{{ option.label }}</ion-radio> … as with the html directly <label class="item item-radio no-border">
<input type="radio" ng-model="$parent.model" ng-value="null">
<div class="item-content">{{ t.everything }}</div>
<i class="radio-icon icon-check-circle positive"></i>
</label>
<label ng-repeat="option in options track by option.value | orderBy: 'label'" class="item item-radio">
<input type="radio" ng-model="$parent.$parent.model" ng-value="option.value">
<div class="item-content">{{ option.label }}</div>
<i class="radio-icon icon-check-circle positive"></i>
</label> I'm running it inside the modal, works correctly with every plaftorm but fails in iOS 9.1: Any help? |
@noldotar so this is fixed in the nightly builds, but you can use a external fix until we cut a new release (hoping to do that soon) https://gist.github.com/mlynch/064d27912b511a63caa3 The main issue here is iOS9's support of the So if you use the nightly builds or apply the gist, you can use
As your markup. To make sure it has been applied correctly, you can inspect the element and you should see a
Also, make sure you are including the directive as a dependency. Please let me know if after review this, you still have issues. |
Ok, adding the fixes it works in iOS as well. Thanks a lot! Awesome customer care!!! |
Type: bug
Platform: ios 8 webview
Unpredictable / wrong behaviour of radio buttons / groups on iOS 9.
Build and run Ionic's own http://codepen.io/ionic/pen/saoBG on an iOS 9 device (iPhone). Note that it can only be reproduced on an actual device (and simulator probably).
Your system information:
Cordova CLI: 5.3.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.0.1
Ionic CLI Version: 1.6.4
Ionic App Lib Version: 0.3.8
ios-deploy version: 1.7.0
ios-sim version: 4.1.1
OS: Mac OS X Yosemite
Node Version: v0.12.7
Xcode version: Xcode 6.4 Build version 6E35b
The text was updated successfully, but these errors were encountered: