Skip to content

Conversation

@mirmirmirr
Copy link

No description provided.

@mirmirmirr mirmirmirr marked this pull request as ready for review December 12, 2025 20:49
@ramonechen ramonechen merged commit e7b3946 into main-preview Dec 12, 2025
7 checks passed
@ramonechen ramonechen deleted the course-dragging-fix branch December 12, 2025 20:49
Copy link

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.

Pull request overview

This PR fixes a course dragging issue by implementing portal-based rendering for dragged items. The change addresses potential CSS positioning issues (such as transform constraints from parent containers) that can occur during drag operations in the @hello-pangea/dnd library.

Key changes:

  • Added portal rendering for dragged items to render them at the document body level
  • Refactored the render logic to conditionally use createPortal when items are being dragged

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,3 +1,4 @@
import { createPortal } from "react-dom";
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The import statement has unnecessary leading whitespace. Remove the extra indentation to maintain consistent formatting with the rest of the file.

Copilot uses AI. Check for mistakes.
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

Successfully merging this pull request may close these issues.

3 participants