fix: z-index change by one causes app to freeze (#8314)
This commit is contained in:
@@ -246,6 +246,20 @@ describe("z-index manipulation", () => {
|
||||
],
|
||||
});
|
||||
|
||||
// elements should not duplicate
|
||||
assertZindex({
|
||||
elements: [
|
||||
{ id: "A", containerId: "C" },
|
||||
{ id: "B" },
|
||||
{ id: "C", isSelected: true },
|
||||
],
|
||||
operations: [
|
||||
[actionSendBackward, ["A", "C", "B"]],
|
||||
// noop
|
||||
[actionSendBackward, ["A", "C", "B"]],
|
||||
],
|
||||
});
|
||||
|
||||
// grouped elements should be atomic
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user