Closed (duplicate)
Project:
Bootstrap
Version:
8.x-3.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2017 at 18:28 UTC
Updated:
15 Jan 2018 at 06:32 UTC
Jump to comment: Most recent
Problem
The operations dropbutton in views with attachments works only on the uppermost attachment. On all others, the touch event of the visible first operation fires the operation of the first attachment view instead of the one in its row. The rest of the dropdown operations (that have a normal link) work as expected.
Steps to reproduce
Create a table view with the operations link and attach another attachment display view above it with the operations link as well. Try to execute one of the operations of the second table.
I suspect this is due to the recent patch to bind events to dropdown elements
Comments
Comment #2
rang501 commentedThis might be cache issue. This problem will occur when views is using tag based caching and one entity is updated. If you look into \Drupal\bootstrap\Plugin\Preprocess\BootstrapDropdown::preprocessLinks, then there's a line where "unique" ID should be generated (with Html::getUniqueId), but this will fail (method not aware of the cached ID-s) when only one entity row is rebuilt (e.g only one entity is updated).
Comment #3
markhalliwellOne of these issues has probably already fixed this. If not, please reopen with a patch.