fix: block resize by dragging not working (#6944)

This commit is contained in:
chenos 2025-05-28 11:39:09 +08:00 committed by GitHub
parent d988e86312
commit afbefb34c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,11 @@ const ColDivider = (props) => {
useDndMonitor({
onDragStart(event) {
if (!designable || !isDragging) {
const dividerRef = event.active?.data?.current?.dividerRef;
if (!dividerRef) {
return;
}
if (!designable) {
return;
}
dragIdRef.current = event.active.id;