-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Propagating 'active' of linkTo to enclosing <li> #1822
Comments
@sanfords FYI, using |
That's a really neat idea. Thank you. |
You might also consider doing away with the |
You are correct. However I'm using the comprehensive Bootstrap library to build up my UI. And it uses class="active" in the |
More discussion here: #1849 |
I'm going to close this so we can move the discussion to 1849. |
The Bootstrap JS/CSS uses the existence of an 'active' class to determine if an item in a UI element should be highlighted. linkTo in ember can only add the 'active' class to the anchor it creates.
A few solutions have been proposed for this, most notably this stack overflow solution. Unfortunately, this solution breaks with
{{#linkTo "index"}}...
as in this jsbin based upon the original.Within the IRC chat it was mentioned that some sort of
{{activeWhen}}
tag could be added to ember.Anything that could be done to help with this issue would be most welcome. :-)
Thank you!
The text was updated successfully, but these errors were encountered: