demo: demo bug of draggable modal (#41630)

该值默认false时,弹出窗口,鼠标不经过modal 的header(即绕过header,从左/右/下方进入modal的body),鼠标左键在body区域按下=着不放并移动,modal也会跟着移动,有时需要选中复制body内文字时,modal一直跟着移动而造成无法选择文字
This commit is contained in:
ChuTao Zhang 2023-04-05 11:17:29 +08:00 committed by GitHub
parent 1275187ed9
commit abdb770683
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<HTMLDivElement>(null);