Why select2 does not work on edit view but work verygood on create views

Why select2 does not work on edit view but work verygood on create views

It works with edit view also with the help of ajax and timeout.