Good day,
I have multiple select2 in my reports and it seems to all work fine. However i have an issue when the page loads, its displays the contents in the select2 and distorts the view for a few seconds, depending on the amount data the select2 has.
is there any work-around to this?
<?php
Select2::create(array(
"multiple" => true,
"name" => "campaigns",
"id" => "campaigns",
"placeholder" => " Filter by campaign(s)",
"dataStore" => $this->dataStore("whatsappCampaigns"),
"dataBind" => array(
"text" => "name",
"value" => "id",
),
"attributes" => array(
"class" => "form-control",
),
)); ?>