diff -u b/core/modules/quickedit/js/quickedit.js b/core/modules/quickedit/js/quickedit.js --- b/core/modules/quickedit/js/quickedit.js +++ b/core/modules/quickedit/js/quickedit.js @@ -368,10 +368,12 @@ var entityElementSelector = '[data-quickedit-entity-id="' + entityID + '"]'; var $entityElement = $(entityElementSelector); + // If there are no elements returned from `entityElementSelector` + // throw an error. Check the browser console for this message. if (!$entityElement.length) { throw Drupal.t('The field [data-quickedit-field-id="@fieldID"] parent attribute [data-quickedit-entity-id] is missing.', { '@fieldID': fieldID - }) + }); } var entityElement = $(fieldElement).closest($entityElement);