-
Notifications
You must be signed in to change notification settings - Fork 13.5k
bug: unreachable code in ionic.activator.start. ion-item's without ng-click cant get activated class #3170
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
Comments
So if they're not elements that you can tap, then why provide any visual feed back? |
@mhartington maybe I was unclear. These are definitely tappable elements
|
@mhartington the following issue is related to exactly what I am saying. #3050 Removing the check for eleToActivate in line 3100 in beta14 ionic.js, would allow @sgon00 to be able to use ion-item with href and still get the activated class, rather than being forced to use ng-click as he described in his example. |
Will pass this to @adamdbradley |
This is in ionic.bundle.js 1.2.0 at line 3222
If this helps any. |
Hello all! Is this still an issue with the latest version of ionic? Thanks! |
Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic! |
Type: bug
Platform: all
ion-item directives without ng-click, or other HTML elements with an item class that are NOT anchors or buttons will not receive the activated class on mouse/tap down/move events.
In the ionic.activator.start method line 3100 in beta14, if any condition is met that set's the eleToActivate variable, the for loop is broken out of, therefore even if your element or element's parent contains the .item class, the code below will never evaluate to true (eleToActivate will always be undefined)
Removing the check for eleToActivate should resolve the issue
The text was updated successfully, but these errors were encountered: