yiisoft / yii2-bootstrap

Yii 2 Bootstrap 3 Extension
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
185 stars 193 forks source link

radioList has hardcoded HTML #246

Open Renkas opened 5 years ago

Renkas commented 5 years ago

I want to use yii\bootstrap\Html to extend my UI helper. But there's now a problem with radioList.

It wraps every item in <div class="radio">. That's not correct. There's also a case where you need to use .radio-inline class or no class/wrapper at all like in my case.

I currently can't see an easy way to unset/change this. I could write a closure that mimics functionality in yii\helpers\BaseHtml but that does not seem like an elegant solution.

This was changed in: https://github.com/yiisoft/yii2-bootstrap/commit/b99473f9685181409c1b06517bc6cc7acfebf268