We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22f2c5f commit 6872e86Copy full SHA for 6872e86
src/hooks/useSwalObserver.ts
@@ -20,7 +20,7 @@ export function useSwalObserver(options: UseSwalObserverOptions) {
20
if (mutation.removedNodes.length) return
21
22
const swalContainer = (Array.from(mutation.addedNodes) as HTMLDivElement[]).find((e) =>
23
- e.classList.contains("swal2-container")
+ e.classList?.contains("swal2-container")
24
)
25
if (!swalContainer) return
26
0 commit comments