mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-11 19:56:37 +08:00
fix: correct SortableContext nesting for table drag-and-drop
Entire-Checkpoint: 356ceb26d6bc
This commit is contained in:
@@ -3788,6 +3788,10 @@ export default function ForwardPage() {
|
|||||||
collisionDetection={closestCenter}
|
collisionDetection={closestCenter}
|
||||||
sensors={sensors}
|
sensors={sensors}
|
||||||
onDragEnd={handleDragEnd}
|
onDragEnd={handleDragEnd}
|
||||||
|
>
|
||||||
|
<SortableContext
|
||||||
|
items={sortableForwardIds}
|
||||||
|
strategy={verticalListSortingStrategy}
|
||||||
>
|
>
|
||||||
<Table
|
<Table
|
||||||
aria-label="全部转发列表"
|
aria-label="全部转发列表"
|
||||||
@@ -3814,11 +3818,6 @@ export default function ForwardPage() {
|
|||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody emptyContent="暂无转发配置" items={sortedForwards}>
|
<TableBody emptyContent="暂无转发配置" items={sortedForwards}>
|
||||||
{(forward) => (
|
{(forward) => (
|
||||||
<SortableContext
|
|
||||||
key={forward.id}
|
|
||||||
items={sortableForwardIds}
|
|
||||||
strategy={verticalListSortingStrategy}
|
|
||||||
>
|
|
||||||
<SortableCompactTableRow
|
<SortableCompactTableRow
|
||||||
formatFlow={formatFlow}
|
formatFlow={formatFlow}
|
||||||
formatInAddress={formatInAddress}
|
formatInAddress={formatInAddress}
|
||||||
@@ -3835,10 +3834,10 @@ export default function ForwardPage() {
|
|||||||
showAddressModal={showAddressModal}
|
showAddressModal={showAddressModal}
|
||||||
toggleSelect={toggleSelect}
|
toggleSelect={toggleSelect}
|
||||||
/>
|
/>
|
||||||
</SortableContext>
|
|
||||||
)}
|
)}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
</Table>
|
</Table>
|
||||||
|
</SortableContext>
|
||||||
</DndContext>
|
</DndContext>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
Reference in New Issue
Block a user