Commit b06caa29 by Qiang Xue

Fixes #1206.

parent ffded7a1
...@@ -653,6 +653,9 @@ class BaseHtml ...@@ -653,6 +653,9 @@ class BaseHtml
*/ */
public static function dropDownList($name, $selection = null, $items = [], $options = []) public static function dropDownList($name, $selection = null, $items = [], $options = [])
{ {
if (!empty($options['multiple'])) {
return static::listBox($name, $selection, $items, $options);
}
$options['name'] = $name; $options['name'] = $name;
$selectOptions = static::renderSelectOptions($selection, $items, $options); $selectOptions = static::renderSelectOptions($selection, $items, $options);
return static::tag('select', "\n" . $selectOptions . "\n", $options); return static::tag('select', "\n" . $selectOptions . "\n", $options);
......
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