Skip to content

Commit 288c7de

Browse files
Eddy Bordikamranahmedse
Eddy Bordi
authored andcommitted
Add validation to ensure className is a string
1 parent 02cf8cb commit 288c7de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/popover.ts

+1
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ export function renderPopover(element: Element, step: DriveStep) {
204204
return (
205205
!popover?.description.contains(target) &&
206206
!popover?.title.contains(target) &&
207+
typeof target.className === 'string' &&
207208
target.className.includes("driver-popover")
208209
);
209210
}

0 commit comments

Comments
 (0)