-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
htmlOptions is overwritten #1
Comments
pjacquemin
added a commit
to pjacquemin/yii2-dropzone
that referenced
this issue
Dec 17, 2014
See issue DevGroup-ru#1
Closed
Hi. I think that better will be used |
I have not found |
@pjacquemin may be @evgen-d means Html::addCssClass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I think that there is a bug in your code.
The $htmlOptions is initialized with the dropzone class at top of DropZone.php :
$htmlOptions = [
'class' => 'dropzone',
];
When using public htmlOptions with the widget, $htmlOptions is overwritten in DropZone.php and the dropzone class option doesnt exists anymore.
You should declare the dropzone class like this in init() or in run() :
$this->htmlOptions['class'] = $this->htmlOptions['class'] . ' dropzone';
Have a nice day and thank you for your sharing.
The text was updated successfully, but these errors were encountered: