Skip to content

Commit 559cdb4

Browse files
authored
Merge pull request #311 from rtfpessoa/fix-file-list-toggle
fix: Add missing dot in class query selector
2 parents 884b95b + 76fb522 commit 559cdb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui/js/diff2html-ui-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class Diff2HtmlUI {
8080
}
8181

8282
fileListToggle(startVisible: boolean): void {
83-
const showBtn: HTMLElement | null = this.targetElement.querySelector('d2h-show');
83+
const showBtn: HTMLElement | null = this.targetElement.querySelector('.d2h-show');
8484
const hideBtn: HTMLElement | null = this.targetElement.querySelector('.d2h-hide');
8585
const fileList: HTMLElement | null = this.targetElement.querySelector('.d2h-file-list');
8686

0 commit comments

Comments
 (0)