Commit ed251d89 by Alexander Kochetov

Html::button() type is `button` by default

parent c4141f94
......@@ -425,6 +425,9 @@ class BaseHtml
*/
public static function button($content = 'Button', $options = [])
{
if (!isset($options['type'])) {
$options['type'] = 'button';
}
return static::tag('button', $content, $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