Skip to content

Commit f2b2dd7

Browse files
committed
Revert "fix: fix bug on dragging apointment and clicking cell before the appointment is dragged to"
This reverts commit f46d03b.
1 parent 54a2410 commit f2b2dd7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,7 @@ class SchedulerWorkSpace extends Widget<WorkspaceOptionsInternal> {
511511

512512
const isMultiSelectionAllowed = this.option('allowMultipleCellSelection');
513513
const currentCellData = this._getFullCellData($cell);
514-
const focusedCell = this.cellsSelectionState.getFocusedCell();
515-
516-
if (!focusedCell) {
517-
return;
518-
}
519-
520-
const focusedCellData = focusedCell.cellData;
514+
const focusedCellData = this.cellsSelectionState.getFocusedCell().cellData;
521515

522516
const nextFocusedCellData = this.cellsSelectionController.moveToCell({
523517
isMultiSelection,
@@ -3339,7 +3333,7 @@ const createDragBehaviorConfig = (
33393333
};
33403334

33413335
const onDragMove = () => {
3342-
if (isDefaultDraggingMode || !state.dragElement) {
3336+
if (isDefaultDraggingMode) {
33433337
return;
33443338
}
33453339

@@ -3381,7 +3375,6 @@ const createDragBehaviorConfig = (
33813375
}
33823376

33833377
state.dragElement?.remove();
3384-
state.dragElement = undefined;
33853378
removeDroppableCellClass();
33863379
};
33873380

@@ -3390,8 +3383,6 @@ const createDragBehaviorConfig = (
33903383
enableDefaultDragging();
33913384
}
33923385

3393-
state.dragElement?.remove();
3394-
state.dragElement = undefined;
33953386
removeDroppableCellClass();
33963387
e.itemElement?.removeClass?.(APPOINTMENT_DRAG_SOURCE_CLASS);
33973388
};

0 commit comments

Comments
 (0)