mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
demo: demo bug of draggable modal (#41630)
该值默认false时,弹出窗口,鼠标不经过modal 的header(即绕过header,从左/右/下方进入modal的body),鼠标左键在body区域按下=着不放并移动,modal也会跟着移动,有时需要选中复制body内文字时,modal一直跟着移动而造成无法选择文字
This commit is contained in:
parent
1275187ed9
commit
abdb770683
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user