Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In combination with the Paragraphs Edit 2.x-dev module, on some Paragraphs, the contextual link is not clickable to edit. There are JS Errors in the console.
Uncaught TypeError: Cannot read property 'top' of undefined
at adjustIfNestedAndOverlapping (js_f5OdHKHNomMmFUb-JT50sULbhaNVvD3xb4k2Rz_-9WQ.js:787)
at initContextual (js_f5OdHKHNomMmFUb-JT50sULbhaNVvD3xb4k2Rz_-9WQ.js:763)
at js_f5OdHKHNomMmFUb-JT50sULbhaNVvD3xb4k2Rz_-9WQ.js:844
I found these issues:
Contextual links broken because of JS error
https://www.drupal.org/node/2033275
contextual.js and quickedit.js should fail gracefully, with useful error messages, when Twig templates forget to print attributes
https://www.drupal.org/node/2551373
Could be that some of our templates do not print "attributes" in the outer wrapper? Start investigating with the field templates.
Comments
Comment #3
thejimbirch CreditAttribution: thejimbirch commentedThanks to the fix in #2551373 in Drupal 8.4, I found the missing attributes, in the field templates. Unfortunately, this added another non-semantic div into the output, but I think the benefit to content administrators outweigh that downside
Comment #4
thejimbirch CreditAttribution: thejimbirch commented