mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
🐛 Fix paste without selection sends the new element in the back
This commit is contained in:
committed by
Alejandro Alonso
parent
94cbf9d8f2
commit
66c5a0570e
@@ -72,6 +72,7 @@
|
|||||||
- Fix an error translation [Taiga #12402](https://tree.taiga.io/project/penpot/issue/12402)
|
- Fix an error translation [Taiga #12402](https://tree.taiga.io/project/penpot/issue/12402)
|
||||||
- Fix problem with certain text input in some editable labels (pages, components, tokens...) being in conflict with the drag/drop functionality [Taiga #12316](https://tree.taiga.io/project/penpot/issue/12316)
|
- Fix problem with certain text input in some editable labels (pages, components, tokens...) being in conflict with the drag/drop functionality [Taiga #12316](https://tree.taiga.io/project/penpot/issue/12316)
|
||||||
- Fix not controlled theme renaming [Taiga #12411](https://tree.taiga.io/project/penpot/issue/12411)
|
- Fix not controlled theme renaming [Taiga #12411](https://tree.taiga.io/project/penpot/issue/12411)
|
||||||
|
- Fix paste without selection sends the new element in the back [Taiga #12382](https://tree.taiga.io/project/penpot/issue/12382)
|
||||||
|
|
||||||
## 2.10.1
|
## 2.10.1
|
||||||
|
|
||||||
|
|||||||
@@ -150,8 +150,8 @@ test("User copy paste a variant container", async ({ page }) => {
|
|||||||
await workspacePage.clickAt(500, 500);
|
await workspacePage.clickAt(500, 500);
|
||||||
await workspacePage.page.keyboard.press("Control+v");
|
await workspacePage.page.keyboard.press("Control+v");
|
||||||
|
|
||||||
const variant_original = await findVariant(workspacePage, 0);
|
const variant_original = await findVariant(workspacePage, 1);
|
||||||
const variant_duplicate = await findVariant(workspacePage, 1);
|
const variant_duplicate = await findVariant(workspacePage, 0);
|
||||||
|
|
||||||
// Expand the layers
|
// Expand the layers
|
||||||
await variant_duplicate.container.getByRole("button").first().click();
|
await variant_duplicate.container.getByRole("button").first().click();
|
||||||
|
|||||||
@@ -848,6 +848,10 @@
|
|||||||
index
|
index
|
||||||
0)
|
0)
|
||||||
|
|
||||||
|
index (if index
|
||||||
|
index
|
||||||
|
(dec (count (dm/get-in page-objects [parent-id :shapes]))))
|
||||||
|
|
||||||
selected (if (and (ctl/flex-layout? page-objects parent-id) (not (ctl/reverse? page-objects parent-id)))
|
selected (if (and (ctl/flex-layout? page-objects parent-id) (not (ctl/reverse? page-objects parent-id)))
|
||||||
(into (d/ordered-set) (reverse selected))
|
(into (d/ordered-set) (reverse selected))
|
||||||
selected)
|
selected)
|
||||||
|
|||||||
Reference in New Issue
Block a user