yii2-bootstrap5 icon indicating copy to clipboard operation
yii2-bootstrap5 copied to clipboard

invalid-feedback div breaks inline radio list

Open cccaballero opened this issue 2 years ago • 0 comments

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:

Captura desde 2023-08-01 12-47-42

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:

Captura desde 2023-08-01 12-51-31

Also if has a small width or a long error message can cause the element to lose the inline position:

Captura desde 2023-08-01 12-55-52

Additional info

Q A
yii2-bootstrap5 version 2.0.2
Yii version 2.0.45
PHP version 8.0
Operating system linux

cccaballero avatar Aug 01 '23 19:08 cccaballero