Skip to content

Plugin breaks HTML internal links, just by loading it #9

@holtkamp

Description

@holtkamp

Currently the plugin applies the ListGroup 'selecting' behavior to all elements with class 'list-group' by default.

Effectively, it intercepts the clicks. This 'breaks' the following code-snipet that we used as a kind of "Table Of Contents":

<div class="list-group">
  <a class="list-group-item" href="#chapter-1-section-1">Go to Section 1.1</a>
  <a class="list-group-item" href="#chapter-1-section-2">Go to Section 1.2</a>
  <a class="list-group-item" href="#chapter-1-section-3">Go to Section 1.3</a>
  <a class="list-group-item" href="#chapter-1-section-4">Go to Section 1.4</a>
  <a class="list-group-item" href="#chapter-1-section-5">Go to Section 1.5</a>
</div>

Is there a way the internal link as used in the href attribute of the involved anchor is still respected => the browser scrolls to that section as it would do without the plugin loaded?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions