From abdb7706837d9ba09d8a11acd954cd44fcc998de Mon Sep 17 00:00:00 2001 From: ChuTao Zhang Date: Wed, 5 Apr 2023 11:17:29 +0800 Subject: [PATCH] demo: demo bug of draggable modal (#41630) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该值默认false时,弹出窗口,鼠标不经过modal 的header(即绕过header,从左/右/下方进入modal的body),鼠标左键在body区域按下=着不放并移动,modal也会跟着移动,有时需要选中复制body内文字时,modal一直跟着移动而造成无法选择文字 --- components/modal/demo/modal-render.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/modal/demo/modal-render.tsx b/components/modal/demo/modal-render.tsx index 524de87262..f6d98c7f84 100644 --- a/components/modal/demo/modal-render.tsx +++ b/components/modal/demo/modal-render.tsx @@ -5,7 +5,7 @@ import Draggable from 'react-draggable'; const App: React.FC = () => { const [open, setOpen] = useState(false); - const [disabled, setDisabled] = useState(false); + const [disabled, setDisabled] = useState(true); const [bounds, setBounds] = useState({ left: 0, top: 0, bottom: 0, right: 0 }); const draggleRef = useRef(null);