mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Merge pull request #2010 from creocoder/basehtml-listbox-size
BaseHtml::listBox() default size settings removed
This commit is contained in:
@@ -718,7 +718,7 @@ class BaseHtml
|
||||
*/
|
||||
public static function listBox($name, $selection = null, $items = [], $options = [])
|
||||
{
|
||||
if (!isset($options['size'])) {
|
||||
if (!array_key_exists($options, 'size')) {
|
||||
$options['size'] = 4;
|
||||
}
|
||||
if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
|
||||
|
||||
Reference in New Issue
Block a user