Skip to content

Commit

Permalink
remove form control class from options if set
Browse files Browse the repository at this point in the history
  • Loading branch information
simialbi committed Mar 26, 2019
1 parent 7885b01 commit e9568d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
],
"require": {
"php": ">=5.6",
"yiisoft/yii2": "~2.0",
"simialbi/yii2-simialbi-base": "*"
"yiisoft/yii2": "^2.0.15",
"simialbi/yii2-simialbi-base": "^0.4"
},
"require-dev": {
"yiisoft/yii2-coding-standards": "~2.0",
Expand Down
7 changes: 4 additions & 3 deletions src/widgets/VisualCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ public function run()
{
parent::run();

// $html = $this->renderInputHtml('hidden');
// $this->options['id'] .= '-container';
$html = Html::tag('div', '', $this->options);
$options = $this->options;
Html::removeCssClass($options, 'form-control');

$html = Html::tag('div', '', $options);
$this->registerPlugin('visualCaptcha');

return $html;
Expand Down

0 comments on commit e9568d0

Please sign in to comment.