-
Notifications
You must be signed in to change notification settings - Fork 156
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
Link activeClassName not working. #379
Comments
Possibly related to #365 ? |
Any updates on that? I have the very same issue. |
Any updates? Same problem here. |
I see the same behaviour. Link from |
As per this comment: #333 (comment), this is fixed for me if I use |
The active class with |
|
There is indeed bug with matching import { Link } from 'preact-router/match';
<Link activeClassName="is-active" class="c-header-link" href="/foo">Foo</Link> // works
<Link activeClassName="is-active" className="c-header-link" href="/foo">Foo</Link> // does not work Tested with preact@10.15.1 and preact-router@4.1.1 |
Hi, I'm trying to use ActiveClassName to style my links, but the property is not being processed, and is instead being passed down to the native DOM. Here's my code:
And the resultant HTML:
I as on /admin/home when I copied the above HTML.
Please let me know if you need any more information.
The text was updated successfully, but these errors were encountered: