Issue Bug Closed

#107966in list view "Paste after..." and "Paste into..." context menu items do not work

Riccardo De Contardi 11/03/25, 11:56 updated 12/02/25, 12:04

Description

Steps to reproduce the problem (latest main):

1. List view > go to a page with a content element > open the kebab menu (three dots) and click on “Copy” (or “Cut”)
2. Go to another page with another content element > open the kebab menu (three dots) and you should see “Paste after: Clipboard content is inserted after this record“
3. click on it

—-

1. List view > go to a page with a content element > open the kebab menu (three dots) and click on “Copy” (or “Cut”)
2. Go to another page with a subpage > open the kebab menu (three dots) of the subpage and you should see “Paste into: Clipboard content is inserted on this page“
3. click on it

expected result (on both cases):

a confirm modal should open

actual result (on both cases):

nothing happens

—-

As far as I can see,both links are built inside:

typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php – I copy the code for one of them:

$clipboardButtons['pasteAfter'] = $this->componentFactory->createGenericButton()
                ->setTag('button')
                ->setIcon($this->iconFactory->getIcon('actions-document-paste-after', IconSize::SMALL))
                ->setTitle($pasteAfterTitle)
                ->setAttributes([
                    'data-severity' => 'warning',
                    'aria-haspopup' => 'dialog',
                    'data-uri' => $pasteAfterUrl,
                    'data-content' => $pasteAfterContent,
                    'class' => 'btn btn-default t3js-modal-trigger',
                ]);

so the items should have the classes btn btn-default t3js-modal-trigger and the latter should trigger the modal… but if I inspect the code I see that the actual classes are dropdown-item dropdown-item-spaced

Reviews 1

History 67

  1. Garvin Hicking commented and changed status New Accepted priority Should have Must have <span data-processor="relativetime" data-value="2025-11-05T19:00:21+00:00" > 11/05/25, 19:00 </span>

    Thanks for this report. Yes, I can confirm this is a problem.

    There’s an open patch https://review.typo3.org/c/Packages/TYPO3.CMS/+/91386 where I’ve added this bug. We could also solve it on its own though. Not sure yet, it needs an architectural rework of the DropDownItem logic.

  2. Gerrit Code Review pushed patch set 10 for main to change 91386 status Accepted Under Review <span data-processor="relativetime" data-value="2025-11-10T15:10:03+00:00" > 11/10/25, 15:10 </span>

  3. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-11-10T16:25:08+00:00" > 11/10/25, 16:25 </span>

    Applied in changeset commit:23bf03f561148dfee01e585f58c1e83415076b9c.