We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38f8393 commit dea38d2Copy full SHA for dea38d2
packages/components/table/hooks/useDragSort.ts
@@ -68,7 +68,7 @@ export default function useDragSort(
68
* fix: https://github.com/Tencent/tdesign-vue-next/issues/4985
69
* 若table内容未渲染(即element子元素为空),拖拽事件不注册
70
*/
71
- if (element?.children?.length === 0 && !isRowHandlerDraggable.value && !isRowDraggable.value) return;
+ if (element?.children?.length === 0 || (!isRowHandlerDraggable.value && !isRowDraggable.value)) return;
72
const dragContainer = element?.querySelector('tbody');
73
if (!dragContainer) {
74
console.error('tbody does not exist.');
0 commit comments