If you use the contextual link (pencil icon, then 'edit') and go to the edit screen, and then navigate away without clicking the 'save' button, then the contextual links don't appear when you hover over the pencil icon when looking at the node again. Clicking on the pencil icon does nothing at that point, though the cursor icon does change to the finger pointer.

This is also an issue in 8.x-1.x-alpha4, and I filed a bug report for it. I'm filing this issue because the bug is also present in this 2.x-dev branch. If this is in error please delete one of the two bug reports.

Comments

slefevre1 created an issue. See original summary.

casey’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot reproduce your issue.

Marijn82’s picture

+1
Problem still exists.
I can only access the contextual menu after I have save the node.
The contextual menu is not available anymore after a page refresh.

Marijn82’s picture

Hello slefevre1

Do you use Bootstrap Paragraphs by any chance? I have tested it on a new install.
Paragraphs edit works fine if I use it with own made Paragraphs and content.
But if I enable Bootstrap Paragraphs. Then add content with the paragraphs of Bootstrap Paragraphs, it does not work anymore.
After saving the content, the contextual links are still visible. But after a page reload the contextual links are not accessible.

iammachine’s picture

+1 Have not tested with custom PP, but can confirm problem with Bootstrap Paragraphs. The contextual links show but do not open, making the module unusable.

griffincox’s picture

+1 using bootstrap paragraphs and Paragraphs + paragraphs_edit. After page creation I can use quickedit, but if I don't save, I can never use the quickedit again. The pencil shows up, but clicking it does nothing.

slefevre1’s picture

Yes, We are using bootstrap paragraphs.

L-four’s picture

I had a similar issue,

Where I was outputting the {{ title_suffix }} in the paragraph templates and the paragraphs_edit module is also adding the contextual_links to the content of the paragraph in paragraphs_edit_preprocess_paragraph

/**
 * Implements hook_preprocess_HOOK() for paragraph.html.twig.
 *
 * @see contextual_preprocess()
 * @see template_preprocess_paragraph()
 */
function paragraphs_edit_preprocess_paragraph(&$variables) {
  // Paragraph templates don't normally print the title_suffix, so add the
  // contextual links to the content render array.
  if (isset($variables['title_suffix']['contextual_links'])) {
    $variables['content']['contextual_links'] = $variables['title_suffix']['contextual_links'];
    $variables['content']['contextual_links']['#weight'] = -100;
  }
}

I was able to fix this by removing 'contextual_links' in my own HOOK_preproccess_paragraph function removing {{ title_suffix }} from the templates would also fix this.

anybody’s picture

Pls’s picture

I can confirm that #8 actually solved issue with contextual fields being hidden. Removing {{ title_suffix }} from paragraph.html.twig template file made it work. And I am testing this only with bootstrap_paragraphs module being enabled. Cheers!

bwoods’s picture

I looked around for another fix, but I ultimately did the same thing listed in #8 and #10. This seems to be an issue only when Bootstrap Paragraphs module is enabled.

thejimbirch’s picture

Title: Cannot access contextual link after opening edit form but not saving » Compatibility with Paragraphs Edit module - Cannot access contextual link after opening edit form but not saving
Project: Paragraphs Edit » Bootstrap Paragraphs
Status: Postponed (maintainer needs more info) » Active

Sounds like this is a problem with the Bootstrap Paragraphs module. I will move the issue there and remove the {{ title_suffix }} from the templates like is recommended in #8.

  • bd8ce4d committed on 8.x-2.x
    Issue #2901588 by L-four, thejimbirch, bwoods, Pls: Compatibility with...
thejimbirch’s picture

Status: Active » Fixed

Fixed in dev. Thanks all!

thejimbirch’s picture

Status: Fixed » Closed (fixed)

Added in Alpha6