Improves all-day event drag and drop

Refactors all-day event conversion during drag and drop to
use the event payload, improving code clarity and reducing
redundancy.

Removes unnecessary style settings and fixes column detection
logic. Addresses an issue where event removal occurred before
successful placement.
This commit is contained in:
Janus C. H. Knudsen 2025-09-29 20:50:52 +02:00
parent 8b5420f367
commit 83e01f9cb7
7 changed files with 29 additions and 49 deletions

View file

@ -27,7 +27,7 @@ export class ColumnDetectionUtils {
// Find alle kolonner
const columns = document.querySelectorAll('swp-day-column');
let index = 0;
let index = 1;
// Cache hver kolonnes x-grænser
columns.forEach(column => {
const rect = column.getBoundingClientRect();