You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
active class works when the <ion-item> does not have href attribute.
When <ion-item> has the href attribute, it will add <a> inside ion-item and <a>'s background color will override active background color with:
I believe this is related to the same issue I was seeing. In beta 14, line 3100 of ionic.js, the ionic.activator.start is supposed to be checking for elements with .item class when it walks up parents, but eleToActive will ALWAYS be undefined in this condition so the check will never pass...
Therefore to get the activated class added to your item, your ion-item will have to have an ng-click which would pass the third condition.
Type: bug
Platform: all
Please check the code:
http://codepen.io/anon/pen/PwOQwR
active
class works when the<ion-item>
does not havehref
attribute.When
<ion-item>
has thehref
attribute, it will add<a>
inside ion-item and<a>
's background color will overrideactive
background color with:To workaround this issue, I have to add the following css style to override
<a>
background color again:The text was updated successfully, but these errors were encountered: