Don't close modal when you click in it

pull/7/head
Sawyer Hood 3 years ago
parent 38acc58f82
commit 075bc73165

@ -1,6 +1,6 @@
"use client"; "use client";
import { useEffect, useState } from "react"; import { use, useEffect, useState } from "react";
import Prism from "prismjs"; import Prism from "prismjs";
import "prismjs/components/prism-cshtml"; import "prismjs/components/prism-cshtml";
@ -28,6 +28,9 @@ export function PreviewModal({
return ( return (
<div <div
onClick={(e) => {
e.stopPropagation();
}}
className="bg-white rounded-lg shadow-xl flex flex-col" className="bg-white rounded-lg shadow-xl flex flex-col"
style={{ style={{
width: "calc(100% - 64px)", width: "calc(100% - 64px)",

Loading…
Cancel
Save