You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a form and within that form create a checkbox list for a model. Ensure that the list of checkboxes is rendered within a container with a limited width and that the list of choices contains at least one string long enough to surpass the width of the container. My example: $form->field($formModel, 'answers', [ 'showRequiredIndicator' => false, ])->checkboxList($formModel->possibleAnswerStrings);
Check the rendered view
Expected behavior and actual behavior
On 1.60, the checkbox list behaves as expected with Bootstrap 4:
With the following HTML: Pastebin
On 1.6.1 and upwards i get the following however:
With the following HTML: Pastebin
Environment
Browsers
Google Chrome
Mozilla Firefox
Internet Explorer
Safari
Operating System
Windows
Mac OS X
Linux
Mobile
Libraries
jQuery version: v3.6.0
yii2-widget-activeform version: from 1.6.1 upwards
Steps to reproduce the issue
$form->field($formModel, 'answers', [ 'showRequiredIndicator' => false, ])->checkboxList($formModel->possibleAnswerStrings);
Expected behavior and actual behavior
On 1.60, the checkbox list behaves as expected with Bootstrap 4:
With the following HTML: Pastebin
On 1.6.1 and upwards i get the following however:
With the following HTML: Pastebin
Environment
Browsers
Operating System
Libraries
Isolating the problem
The text was updated successfully, but these errors were encountered: