I found a bug with set seleted multiple select. Please help me fix it

< link href=“https://cdn.jsdelivr.net/npm/[email protected]/dist/css/select2.min.css” rel=“stylesheet” />
< div class=“text-center”>
< select class=“js-example-basic-multiple” multiple=“multiple” style=“width:100%” >
< option value=“1”>1< /option>
< option value=“2”>2< /option>
< option value=“3”>3< /option>
< option value=“4”>4< /option>
< option value=“5”>5< /option>
< /select>
< /div>
< input type=“button” onclick=“SetValue()” value=“SetValue” />
< script src="~/js/jquery-3.7.1.min.js">
< script src=“https://cdn.jsdelivr.net/npm/[email protected]/dist/js/select2.min.js”>
< script>
$(’.js-example-basic-multiple’).select2();
function SetValue() {
$(’.js-example-basic-multiple’).val([‘1’, ‘2’, ‘4’]);
$(’.js-example-basic-multiple’).trigger(‘change’);
}
< /script>

enough for me
trigger(‘change’)
then select2 is not genarate code

< li class=“select2-selection__choice” title=“2” data-select2-id=“select2-data-9-vvob”>< button type=“button” class=“select2-selection__choice__remove” tabindex="-1" title=“Remove item” aria-label=“Remove item” aria-describedby=“select2-gnza-container-choice-y1w4-2”>< span aria-hidden=“true”>×< /span>< /button >< span class=“select2-selection__choice__display” id=“select2-gnza-container-choice-y1w4-2”>2< /span>< /li>

This set does not allow us to set selected multiple.