Unifies all-day event element tag
Removes the `swp-allday-event` custom element, using `swp-event` for all-day events instead. All-day events are now distinguished by their parent `swp-allday-container`. Simplifies element management and CSS selectors.
This commit is contained in:
parent
c7dcfbbaed
commit
2cdbc8f1a3
5 changed files with 12 additions and 12 deletions
|
|
@ -42,7 +42,7 @@ export class DragDropManager {
|
|||
private initialMousePosition: Position = { x: 0, y: 0 };
|
||||
|
||||
// Drag state
|
||||
private draggedElement: HTMLElement | null = null ;
|
||||
private draggedElement!: HTMLElement | null;
|
||||
private currentColumn: string | null = null;
|
||||
private isDragStarted = false;
|
||||
|
||||
|
|
@ -134,7 +134,7 @@ export class DragDropManager {
|
|||
let eventElement = target;
|
||||
|
||||
while (eventElement && eventElement.tagName !== 'SWP-EVENTS-LAYER') {
|
||||
if (eventElement.tagName === 'SWP-EVENT' || eventElement.tagName === 'SWP-ALLDAY-EVENT') {
|
||||
if (eventElement.tagName === 'SWP-EVENT') {
|
||||
break;
|
||||
}
|
||||
eventElement = eventElement.parentElement as HTMLElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue