We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example:
<a href="#first-section">First Section</a>
does work and React Spy correctly initializes.
<a href="/#first-section">First Section</a>
Doesn't work, React Spy even crash.
This is beacause we use
document.querySelector(`[href="#${item}"]`)
to get the navItems. And it crashes because we don't double check that navItems array actually has non-null values.
navItems
non-null
The text was updated successfully, but these errors were encountered:
fix: now handling some edge cases
4903a8c
Correctly handling href like `/#my-hash` Preventing crash when `navItems` doesn't get initialized correctly Closes #1
CloudPower97
No branches or pull requests
For example:
does work and React Spy correctly initializes.
Doesn't work, React Spy even crash.
This is beacause we use
to get the
navItems
.And it crashes because we don't double check that
navItems
array actually hasnon-null
values.The text was updated successfully, but these errors were encountered: