Skip to content

Commit 74b2d76

Browse files
committedOct 8, 2014
Upgrade to release v3.0.0
1 parent 6e09f54 commit 74b2d76

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎Select2.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@ public function init()
9898
) {
9999
$this->data = ["" => ""] + $this->data;
100100
}
101-
if (!isset($this->options['style'])) {
102-
$this->options['style'] = 'width: 100%';
103-
}
104-
101+
Html::addCssClass($this->options, 'form-control');
102+
Html::addCssStyle($this->options, 'width:100%', false);
105103
$this->registerAssets();
106104
$this->renderInput();
107105
}
@@ -199,4 +197,4 @@ public function registerAssets()
199197
}
200198

201199
}
202-
}
200+
}

0 commit comments

Comments
 (0)
Please sign in to comment.