appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
34.64k stars 3.74k forks source link

[Bug]: Dragged widgets are not dropped in the expected position #34807

Open LagunaElectric opened 4 months ago

LagunaElectric commented 4 months ago

Is there an existing issue for this?

Description

Dragged widgets are not dropped in the same positions that they were moved from. Instead they are dropped in the order they were placed in the previous container.

This is not expected behavior, and I think they should have been dropped with the same snap points they were moved from.

Possibly related to #34806 Created a new issue because this is drag and drop, not copy paste, and the behavior is slightly different.

Steps To Reproduce

  1. Drag a button onto the canvas to create a new Section and Zone. a. The button should snap to the left.

  2. Drag another button directly under the first one in the same Zone.

  3. Drag an Input widget under the second button in the same Zone.

  4. Drag a third button between the second button and the Input. a. This button should snap to the right side of the Zone.

  5. Add a second Zone to the parent Section.

    image
  6. Select all four widgets in Zone1.

  7. Drag the selection to Zone2.

  8. Observe that the widgets are pasted in along the same line, and in the order they were placed in Zone1.

    image
  9. Select and delete all three buttons and the input.

  10. Perform steps 1, 3, 2, and 4 again in that order. Use Zone1 instead of a new section for step 1.

  11. Select all four widgets in Zone1.

  12. Drag the selection to Zone2.

  13. Observe that the widgets are pasted in along the same line, and in the new order they were placed.

    image

Public Sample App

No response

Environment

Release

Severity

Medium (Frustrating UX)

Issue video log

No response

Version

Appsmith v1.31.0-SNAPSHOT

github-actions[bot] commented 4 months ago

We have found issues that are potential duplicates:

github-actions[bot] commented 4 months ago

We have found issues that are potential duplicates: