yii2-bootstrap5
yii2-bootstrap5 copied to clipboard
invalid-feedback div breaks inline radio list
What steps will reproduce the problem?
I'm trying to implement an inline radio list like this:
<div class="col-md-6 allow-sms-col">
<?= $form->field($model, 'my_field')->inline()->radioList(['1' => 'Yes', '0' => 'No'], ['unselect' => null]) ?>
</div>
What is the expected result?
It should render an inline radio list, like:
What do you get instead?
But the .invalid-feedback div is included inside the last radio element (the last .form-check-inline div) causing this to happen:
Also if has a small width or a long error message can cause the element to lose the inline position:
Additional info
| Q | A |
|---|---|
| yii2-bootstrap5 version | 2.0.2 |
| Yii version | 2.0.45 |
| PHP version | 8.0 |
| Operating system | linux |