Skip to content

Commit 3637706

Browse files
committed
closes #1
1 parent 19dbc5c commit 3637706

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

DropZone.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ class DropZone extends Widget
1313
{
1414
public $model;
1515
public $attribute;
16-
public $htmlOptions = [
17-
'class' => 'dropzone',
18-
];
16+
public $htmlOptions = [];
1917
public $name;
2018
public $options = [];
2119
public $eventHandlers = [];
@@ -30,6 +28,7 @@ public function init()
3028
{
3129
parent::init();
3230

31+
Html::addCssClass($this->htmlOptions, 'dropzone');
3332
$this->dropzoneName = 'dropzone_' . $this->id;
3433
}
3534

0 commit comments

Comments
 (0)