kartik-v / yii2-widget-select2

Enhanced Yii2 wrapper for the Select2 jQuery plugin (sub repo split from yii2-widgets).
http://demos.krajee.com/widget-details/select2
Other
323 stars 145 forks source link

Cannot select all options on negative values #312

Closed dioniswe closed 4 years ago

dioniswe commented 4 years ago

Steps to reproduce:

 <?= Select2::widget([
                    'name' => 'owner',
                    'id' => 'owner',
                    'data' => [-1 =>'bla bla', -2=>'blub blub'],
                    'options' => ['multiple' => true, 'placeholder' => ''],
                    'toggleAllSettings' => [
                        'selectLabel' => 'Alles auswählen',
                        'unselectLabel' => 'Alles abwählen',
                    ],
                ]);?>

Expected behavior

Possible to select all options

Actual Behaviour

Nothing is being selected at all

Browsers

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kartik-v commented 4 years ago

Will be fixed via #330