浏览代码

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

Co-authored-by: crazywoola <427733928@qq.com>
tags/0.6.5
Luvian77 1年前
父节点
当前提交
5dacf77627
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      web/app/components/base/modal/index.tsx

+ 7
- 1
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}

正在加载...
取消
保存