Skip to content

bug: Moving selected boards to other pages #193

Open
@girafic

Description

@girafic

Steps To Reproduce

I'm trying to move selected boards from one page to an other page with:

 const targetPage = await penpot.currentFile?.pages.find(
      (page) => page.id === msg.pageId
    );
  if (!targetPage) return;
  const targetPageRoot = targetPage.root as Board;
  if (selectedShapes.length > 0) {
    for (const shape of selectedShapes) {
      targetPageRoot.appendChild(shape);
    }
  }

But nothing happens, it appends the selected boards to the same page. Is it a bug or intentional?

Expected behavior

Moving selected items to other pages.

Actual behavior

Selected items stay on the same page.

Screenshots or video

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Environment (please complete the following information)

No response

Frontend Stack Trace

Backend Stack Trace

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmanaged on taigaThis issue has been moved to our project at Taiga.io

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions