Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Jul 2015 at 09:38 UTC
Updated:
15 Apr 2021 at 09:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
finnsky commentedHello world! Looks like HTML was wrong, I compared it with frontpage view with contextual links. Now it's has same HTML. Also should be added 'data-contextual-id' attribute.
Comment #2
andypostComment #3
andypostwtf with attributes?
they should be added dynamically if contextual module enabled
Comment #5
lauriiiAttributes variable should be still printed. You can use attributes.addClass() to add classes.
When attributes variable is being used, no additional space is needed before it
Comment #6
finnsky commentedhello all! Template fixes added. Buttons appear. We still need to set correct data-contextual-id attribute here: core\modules\views_ui\views_ui.theme.inc:513.
Comment #7
finnsky commentedAlso I found that in default template parent .contextual-region class not added. This should be reason of JS error
Uncaught TypeError: Cannot read property 'top' of undefined contextual.js?v=8.0.0-dev:116Comment #16
lendudeCleaning up old bugs.
This is still broken. Not sure why you would want to use the contextual links in the preview, but yeah, the markup is there, but they don't show.