Details
-
Type: Bug
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 3.0.0
-
Fix Version/s: 4.1.0-b1
-
Component/s: None
-
Labels:None
Description
Calls to Widget::create and WidgetClient::create to set the $attributes argument to define a 'class' property is intended to concatenate the given class with the default class for the widget to function properly, however, the user-defined class are not concatenated.
To fix, change the order of the array merge:
... $attributes = array_merge($default_attributes, (array)$attributes); ...