Skip to content
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

Restored default behavior for non #hash links #30

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

rexfordkelly
Copy link

Add support for handling "External" Urls, in nulling out handleClick if e.target.href starts with 'http'

Add support for handling "External" Urls, in nulling out handleClick if e.target.href starts with 'http'
Turns out there are multiple modalities for where we might want normal href behavior, I simplified the logic, to only preventDefaults for urls with leading #. Now relative and "external" links behave as expected.
@rexfordkelly rexfordkelly changed the title Add support for handling "External" Urls. Restored default behavior for non #hash links Jul 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant