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

When using tags, searched value appears as option and prevents Select-All #347

Open datenfalke opened 2 years ago

datenfalke commented 2 years ago

Prerequisites

Steps to reproduce the issue

  1. Open https://demos.krajee.com/widget-details/select2#usage-tags
  2. Enter "a" into first Select2 box
  3. click "Select all"

Expected behavior and actual behavior

Expected would be the selection of all found options.

No options are selected, and a JS error appears regarding the missing attr of the entered value "a", see screenshot.

The entered value should not be part of the inserted options when clicking "Select all".

If you enter no search value and click "Select all" it is working because no search value produces the error.

How can I prevent the insertion of the searched value into the list of options?

Isolating the problem

Screenshot_20220316_135144

stale[bot] commented 2 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.