Commit 528f8c82 by Qiang Xue

Fixes #795: do not generate form-control css class for file input as it would…

Fixes #795: do not generate form-control css class for file input as it would display an unneeded border.
parent d24e5b9b
......@@ -323,7 +323,9 @@ class ActiveField extends Component
*/
public function fileInput($options = array())
{
$options = array_merge($this->inputOptions, $options);
if ($this->inputOptions !== array('class' => 'form-control')) {
$options = array_merge($this->inputOptions, $options);
}
$this->parts['{input}'] = Html::activeFileInput($this->model, $this->attribute, $options);
return $this;
}
......
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