Issue when using Yii2 kartik/Select2


I have an issue when using the kartik Select2 widget. On certain pages, it is working fine but in some other pages the spinning icon is always loading and no data are displayed. You can see in the attached file.

Please how can i fix this issue? I do noit understand why?


Any answer please?