-
Notifications
You must be signed in to change notification settings - Fork 155
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
When the Link
is clicked, there is no reaction to Ctrl and Shift. And history entries are duplicated.
#253
Comments
Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated.Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated. I fixed it.
Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated. I fixed it.Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated in Chrome.
Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated in Chrome.Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated.
Link
is clicked, there is no reaction to Ctrl and Shift. And history entries is duplicated.Link
is clicked, there is no reaction to Ctrl and Shift. And history entries are duplicated.
Hi there - try using a plain old |
@developit Using a plain old |
Another option would be to change export const Link = ({ activeClassName, path, ...props }) => (
<Match path={path || props.href}>
{ ({ matches }) => (
<a {...props} class={[props.class || props.className, matches && activeClassName].filter(Boolean).join(' ')} />
) }
</Match>
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. I've found that multiple clicks on same
Link
cause duplication of records. And also that clicks onLink
with the holded Ctrl and Shift are not processed, as it should be.I thought this was a mistake and I hope for understanding. I fixed it and hopefully you use it.
~42 line
inpreact-router/src/index.js
:~96 line
:Thank you in advance.
P.S. Does the
preact-router
cache pages? Let's say when going back and forward on history.The text was updated successfully, but these errors were encountered: