#107966in list view "Paste after..." and "Paste into..." context menu items do not work
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