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

Select2 validation #203

Closed pptyasar closed 5 years ago

pptyasar commented 7 years ago

Steps to reproduce the issue

This bug is select2 tag 1.Select the dropdown value 2.Insert new tag value

Now validation will not work

If doing like in this order validation is working 1.Insert new tag value 2.Select the dropdown value

Expected behavior and actual behavior

When one attribute has validation rules its not working. Ex: If one field have validation rule of email

It is working when tag is inserting at first (Without selected dropdown See image 1)

When any of dropdown selected then new tag value is not validating ( See image 2 screenshot1 screenshot2

)

Environment

Browsers

Operating System

Libraries

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

alejosv commented 5 years ago

Same issue, but with select option default, same validation rules, different behaivor.