Skip to content

Commit c84987e

Browse files
author
Ying Zhong
committed
Fix typescript static check error
1 parent 78dc9da commit c84987e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ function removePreviewPanel(animated = true) {
138138
}
139139

140140
states.focusedElement = undefined;
141-
document.querySelectorAll(`.${previewClass}`).forEach((element: HTMLElement) => {
141+
document.querySelectorAll<HTMLElement>(`.${previewClass}`).forEach((element: HTMLElement) => {
142142
if (animated) {
143143
element.style.opacity = '0';
144144
element.addEventListener(

0 commit comments

Comments
 (0)