Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: Added prevention of click event propagation for overlay layer (#3666)

Luvian775dacf776270d
diff --git a/web/app/components/base/modal/index.tsx b/web/app/components/base/modal/index.tsx
index b228fed6fc3..403cb319ba5 100644
--- a/web/app/components/base/modal/index.tsx
+++ b/web/app/components/base/modal/index.tsx
@@ -41,7 +41,13 @@ export default function Modal({
<div className="fixed inset-0 bg-black bg-opacity-25" />
</Transition.Child>
- <div className="fixed inset-0 overflow-y-auto">
+ <div
+ className="fixed inset-0 overflow-y-auto"
+ onClick={(e) => {
+ e.preventDefault()
+ e.stopPropagation()
+ }}
+ >
<div className="flex min-h-full items-center justify-center p-4 text-center">
<Transition.Child
as={Fragment}