question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not trigger when clicking on anchors?

See original GitHub issue

If a user clicks on an anchor link such as:

<a href="#myAnchor">Go to top</a>

If the anchor is “above” the user’s position, The browser “scrolls”, and the header will get the --pinned class. The problem is that if you use --pinned to apply fixed positioning, your headroom class is now above/on top of the anchor that the user just scrolled to.

Is there a way around this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
WickyNilliamscommented, Aug 12, 2019

I will add a mention of this in the docs. See #323

1reaction
WickyNilliamscommented, Jun 28, 2019

That seems like the ideal solution to me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Click trigger not working with anchor tag. Why? - Stack Overflow
I want to call trigger("click") with id of anchor tag. This simple demo not working. Why? <script src="https://ajax.googleapis.com/ajax/libs/ ...
Read more >
395917 - simulating a click on an anchor using dispatchEvent ...
simulating a click on an anchor using dispatchEvent and initMouseEvent does not trigger a real click.
Read more >
Trigger click event of an anchor tag with JavaScript/jQuery
This post will discuss how to trigger the click event of an anchor tag in JavaScript and jQuery. 1. Using jQuery. The idea...
Read more >
How to trigger a click on a link using jQuery - Edureka
How to trigger a click on a link using jQuery ... and I am trying to trigger it by using: $(document).ready(function() { $('#titleee').find('a')....
Read more >
click event of anchor tag does not work - MSDN
Anchors <a>, don't fire a click event unless a href is defined. It's common in this case to use just a #. href=“#”....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found