If I load an entity in my panelized node, the contextual links will get triggered twice. This has the effect that if you push the button to trigger the contextual link dropdown, it toggles twice (opens / closes). I have a filthy hack in contextual.js line 150 to mitigate this issue atm, but I thought I'd raise the issue as well here.

if ($context.hasClass('block') || $context.attr('id') === 'panels-ipe-content') {
return;
}

Comments

basvanderheijden created an issue. See original summary.

nor4a’s picture

I've created a patch that fixes the problem in the contextual.js core javascript file.
I've submitted it to Drupal core issues queue: https://www.drupal.org/node/2834346#comment-11818990

damienmckenna’s picture

Version: 8.x-3.0-beta4 » 8.x-3.x-dev
Status: Active » Closed (duplicate)

It seems like this is a core bug, feel free to reopen if the referenced core issue doesn't resolve this one too.

wim leers’s picture

Status: Closed (duplicate) » Active
Related issues: +#2834346: Contextual links double trigger

It's not at all certain that this is a core bug. See #2834346-7: Contextual links double trigger.

damienmckenna’s picture

Version: 8.x-3.x-dev » 8.x-4.x-dev
rbosscher’s picture

I think that I found the code that is triggering the contextual links twice. For more details see #2601004: Contextual links don't work for blocks on page_manager pages

Status: Needs review » Needs work

The last submitted patch, 6: PATCH-Issue-2743353-by-rbosscher-Fix-Contextual-links-doub.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

rbosscher’s picture

Version: 8.x-4.x-dev » 8.x-4.3
Status: Needs work » Needs review

Did the patching to the latest 8.x-4.3 issue was on the dev version

rbosscher’s picture

StatusFileSize
new998 bytes

Status: Needs review » Needs work

The last submitted patch, 9: PATCH-Issue-2743353-by-rbosscher-Fix-Contextual-links-doub.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.