Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 2: The application doesn't handle the onDragStart, onDragOver, onDrop, and onDragEnd events. #3

Open
sbmsr opened this issue Apr 28, 2023 · 0 comments

Comments

@sbmsr
Copy link
Member

sbmsr commented Apr 28, 2023

What you need to do

Implement handleTaskDragStart, handleTaskDragOver, handleTaskDrop, and handleTaskDragEnd to handle the drag-and-drop events.

The application currently does not handle these events, which are necessary for the drag and drop functionality of the tasks. They can be found between lines 24-48 of App.tsx.

Before:

before2.mov

After:

after2.mov

Subtask 2.1

Make sure the application doesn't incorrectly show duplicate tasks when dragged over themselves.

The application may display a duplicate of the task when a task is dragged over itself. Make sure this doesnt happen.

Before:

b.mov

After:

a.mov

Subtask 2.2

Make sure the application doesn't leave a lingering task when dragged over a column but dropped elsewhere.

If a task is dragged over a column but is dropped elsewhere, the application should not leave a copy of the task in the column.

Before:

b.mov

After:

a.mov

Subtask 2.3

Make sure the application doesn't delete a task that is dragged over its current column.

A task should not be deleted when it is dragged over its current column.

Before:

b.mov

After:

a.mov
@sbmsr sbmsr changed the title The application doesn't handle the onDragStart, onDragOver, onDrop, and onDragEnd events. Issue 2: The application doesn't handle the onDragStart, onDragOver, onDrop, and onDragEnd events. May 2, 2023
maxim55069633 pushed a commit to maxim55069633/react-kanban-board that referenced this issue Jul 17, 2023
pwhb added a commit to pwhb/react-kanban-board that referenced this issue Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant