()
| 462 | styles.reset(); |
| 463 | |
| 464 | const finalize = () => { |
| 465 | if (savedCellWidths && isTableRow(element)) { |
| 466 | const cells = Array.from(element.cells); |
| 467 | |
| 468 | for (const [index, cell] of cells.entries()) { |
| 469 | cell.style.width = savedCellWidths[index] ?? ''; |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | source.status = 'idle'; |
| 474 | |
| 475 | const moved = state.current.translate != null; |
| 476 | const isDragging = dragOperation.status.dragging; |
| 477 | |
| 478 | if ( |
| 479 | placeholder && |
| 480 | ((!isDragging && moved) || |
| 481 | placeholder.parentElement !== feedbackElement.parentElement) && |
| 482 | feedbackElement.isConnected |
| 483 | ) { |
| 484 | placeholder.replaceWith(feedbackElement); |
| 485 | } |
| 486 | |
| 487 | placeholder?.remove(); |
| 488 | }; |
| 489 | |
| 490 | if (feedbackElement === this.overlay) { |
| 491 | setTimeout(finalize, 0); |
nothing calls this directly
no test coverage detected