Commit 292ab059 authored by mxh's avatar mxh Committed by borisson_

Issue #3015074 by mxh: WidgetPluginBase::buildListItems resets #attributes...

Issue #3015074 by mxh: WidgetPluginBase::buildListItems resets #attributes when result item is active
parent 226e6d4d
......@@ -198,7 +198,7 @@ abstract class WidgetPluginBase extends PluginBase implements WidgetPluginInterf
}
if ($result->isActive()) {
$items['#attributes'] = ['class' => ['is-active']];
$items['#attributes']['class'][] = 'is-active';
}
$items['#wrapper_attributes'] = ['class' => $classes];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment