Project

General

Profile

Bug #11172

Updated by Marek Hulán almost 9 years ago

After select2 was merge, we saw issues with ajax loaded forms. We have "workarounds":https://github.com/theforeman/foreman/blob/f319405923b27ede45fc04e5e1c1662e3667db32/app/assets/javascripts/application.js#L125-L127 "workarounds":https://github.com/theforeman/foreman/blob/develop/app/assets/javascripts/application.js#L125 that initialize select2, destroy it and reinitialize it later. When a poor plugin developer wants have control over forms we don't provide any way how to customize this. 

 I think we should call initialize select2 only on select fields that have specific class.

Back