I used Select2 4.0.6, I have a bug like below:
allowClear gives \"Uncaught TypeError: Cannot read property \'id\' of undefined\" when used on select.
How can I f
In my case data-placeholder helped as shown below:
data-placeholder
Select element:
Manager 1 Manager 2
JS:
$('.select2').each(function(){ var select = $(this); select.select2({ width: '100%', allowClear: !select.prop('required'), language: { noResults: function () { return "{{ __('No results found') }}"; } } }); });