Skip to content

Commit

Permalink
Upgrade to release v3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Oct 8, 2014
1 parent 6e09f54 commit 74b2d76
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Select2.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ public function init()
) {
$this->data = ["" => ""] + $this->data;
}
if (!isset($this->options['style'])) {
$this->options['style'] = 'width: 100%';
}

Html::addCssClass($this->options, 'form-control');
Html::addCssStyle($this->options, 'width:100%', false);
$this->registerAssets();
$this->renderInput();
}
Expand Down Expand Up @@ -199,4 +197,4 @@ public function registerAssets()
}

}
}
}

0 comments on commit 74b2d76

Please sign in to comment.