Hi, i have a little problem. How can i remove text from selection after add item to select. My options for select2 is closeOnSelect: false, tags: true and when i write someting, click ENTER this something text is added to select, but text, which i wrote is not disappear, can i remove it after add tag to select?
Ok i did it like that:
$('[name="sending_emails[]"]').on('select2:select', function (e) {
$('.select2-search__field').val('');
});