移除模态框点击外部关闭功能,防止误触关闭
- 移除 AddProviderModal 的点击遮罩层关闭功能 - 移除 EditProviderModal 的点击遮罩层关闭功能 - 用户现在只能通过按钮主动关闭模态框,提升用户体验
This commit is contained in:
@@ -77,8 +77,8 @@ const EditProviderModal: React.FC<EditProviderModalProps> = ({ provider, onSave,
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="modal-overlay" onClick={onClose}>
|
||||
<div className="modal-content" onClick={(e) => e.stopPropagation()}>
|
||||
<div className="modal-overlay">
|
||||
<div className="modal-content">
|
||||
<h2>编辑供应商</h2>
|
||||
|
||||
{error && (
|
||||
|
||||
Reference in New Issue
Block a user