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
Hi, I have tried giving placeholder in Select2 Options but it doesn't work multiple is set to false however if multiple is set to true, then placeholder works.
I have also viewed in demo and there are no demos which shows Placeholder in single Select.
Also, in single select, by default first option is selected, however value is not selected i.e value is empty.
This is my options var -
What worked for ma as quick-and-dirty fix was to first push an item with empty strings to the data array: {id: '', text: ''}
This enables the placeholder for me so far.
Hi, I have tried giving placeholder in Select2 Options but it doesn't work multiple is set to false however if multiple is set to true, then placeholder works.
I have also viewed in demo and there are no demos which shows Placeholder in single Select.
Also, in single select, by default first option is selected, however value is not selected i.e value is empty.
This is my options var -
Thanks.
The text was updated successfully, but these errors were encountered: