Not trigger when clicking on anchors?
See original GitHub issueIf 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:
- Created 5 years ago
- Reactions:4
- Comments:8 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I will add a mention of this in the docs. See #323
That seems like the ideal solution to me