Skip to content

Fix drag-over class persistence after leaving drop zone #23

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Spikeysanju
Copy link
Contributor

@Spikeysanju Spikeysanju commented Apr 10, 2025

Fixes #22

Add a check to reset dragEnterCounter to 0 in handleDragLeave function in src/lib/actions/droppable.ts.

  • Ensure dragEnterCounter is reset to 0 when the drag leaves the drop zone.
  • Add a comment to indicate the purpose of resetting dragEnterCounter.

For more details, open the Copilot Workspace session.

Fixes #22

Add a check to reset `dragEnterCounter` to 0 in `handleDragLeave` function in `src/lib/actions/droppable.ts`.

* Ensure `dragEnterCounter` is reset to 0 when the drag leaves the drop zone.
* Add a comment to indicate the purpose of resetting `dragEnterCounter`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/thisuxhq/sveltednd/issues/22?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

cloudflare-workers-and-pages bot commented Apr 10, 2025

Deploying sveltednd with  Cloudflare Pages  Cloudflare Pages

Latest commit: 92a1ed2
Status:🚫  Build failed.

View logs

@Spikeysanju Spikeysanju self-assigned this Apr 10, 2025
@Spikeysanju Spikeysanju requested a review from Copilot April 10, 2025 19:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@Spikeysanju Spikeysanju added the enhancement New feature or request label Apr 10, 2025
@Saltallica
Copy link

Any chance this will be fixed soon? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drag-over class keeps after leaving zone
2 participants