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

Respect listItem href attribute if not '#' #10

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

Respect listItem href attribute if not '#' #10

wants to merge 2 commits into from

Conversation

holtkamp
Copy link

@holtkamp holtkamp commented Dec 2, 2015

As reported in #9:

  • the plugin applies its functionality on all .list-group elements
  • this breaks internal links like: <a href="#page-section1">Go to Section 1</a>

The suggested solution is to:

  • only return false / stop the "click" event from propagating, when href="#" is used
  • return true otherwise.

This way internal links work again and when using href="#" the page does not scroll to the top, probably the reason why false was always returned.

@holtkamp
Copy link
Author

holtkamp commented Mar 5, 2016

Small bump on this? Anything blocking a merge of this PR?

holtkamp added a commit to holtkamp/listgroup.js that referenced this pull request Mar 8, 2016
As suggested on rickardn#10, no response, needed the bower.json which is in this fork
@holtkamp
Copy link
Author

holtkamp commented Jan 8, 2018

Shameless bump on this 😄

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