summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhauptm2018-11-24 09:56:15 (GMT)
committerJoris Vercammen2018-11-24 09:56:15 (GMT)
commit292ab05943b33b677b8f59eefb9699ff2d12fd3f (patch)
tree220e90847a23aa24f3aeedebe4e33d1450a62b9f
parent226e6d4d0951f5c98f3c648747550a4681ab4a96 (diff)
Issue #3015074 by mxh: WidgetPluginBase::buildListItems resets #attributes when result item is active
-rw-r--r--src/Widget/WidgetPluginBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Widget/WidgetPluginBase.php b/src/Widget/WidgetPluginBase.php
index 30b4f63..bd0987f 100644
--- a/src/Widget/WidgetPluginBase.php
+++ b/src/Widget/WidgetPluginBase.php
@@ -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];