Skip to content

Commit dd30889

Browse files
committed
Use dedicated Bootstrap attribute for collapse card
Using `href` here is discouraged, since some libraries treat it as a regular link (and, for example, perform some prefetch when hovering over the card header).
1 parent 3d92852 commit dd30889

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/exercises/show.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ ul.list-unstyled#files
5555
- @exercise.files.each do |file|
5656
li.card.mt-2
5757
.card-header#heading role='tab'
58-
a.file-heading.collapsed data-bs-toggle='collapse' data-bs-parent='#files' href=".collapse#{file.id}"
58+
a.file-heading.collapsed data-bs-toggle='collapse' data-bs-parent='#files' data-bs-target=".collapse#{file.id}"
5959
.clearfix role='button'
6060
i.fa-solid aria-hidden='true'
6161
span = file.filepath

0 commit comments

Comments
 (0)