Skip to content

fix: allow draggable modal to work with inline left style #1056#1077

Open
fluxaro wants to merge 1 commit intoreactjs:masterfrom
fluxaro:fix-draggable-left-1056
Open

fix: allow draggable modal to work with inline left style #1056#1077
fluxaro wants to merge 1 commit intoreactjs:masterfrom
fluxaro:fix-draggable-left-1056

Conversation

@fluxaro
Copy link

@fluxaro fluxaro commented Mar 5, 2026

What this PR does

This fixes the issue where draggable modals stop working when an inline left: 0 style is applied (Issue #1056).

How it was fixed

  • Updated the draggable logic to correctly calculate offsets even when left is set inline.
  • Ensures the modal can still be dragged as expected.
  • Preserves all existing modal functionality.

Testing

  • Verified dragging works with left: 0.
  • Verified dragging still works with other left values.
  • Checked that no other modal styles are broken.

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.

1 participant