Skip to content

Commit dea38d2

Browse files
authored
fix(table): correct drag-and-drop in drawer and restore text selection behavior (#5224)
1 parent 38f8393 commit dea38d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/table/hooks/useDragSort.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default function useDragSort(
6868
* fix: https://github.com/Tencent/tdesign-vue-next/issues/4985
6969
* 若table内容未渲染(即element子元素为空),拖拽事件不注册
7070
*/
71-
if (element?.children?.length === 0 && !isRowHandlerDraggable.value && !isRowDraggable.value) return;
71+
if (element?.children?.length === 0 || (!isRowHandlerDraggable.value && !isRowDraggable.value)) return;
7272
const dragContainer = element?.querySelector('tbody');
7373
if (!dragContainer) {
7474
console.error('tbody does not exist.');

0 commit comments

Comments
 (0)