Migrate away from select2 in app/assets/javascripts/issuable/issuable_form.js
The IssuableForm#initTargetBranchDropdown
method seems to be initializing select2
instances on .js-target-branch-select
selectors. However, we don't seem to be rendering .js-target-branch-select
anywhere in the codebase, so we might be able to get rid of this method altogether.
Internally, the method leverages the AutoWidthDropdownSelect
class which would likely become unused if the method was removed. We should consider deleting app/assets/javascripts/issuable/auto_width_dropdown_select.js
as well.
Implementation plan
- Remove the method after having confirmed that it's not used anymore.
-
Delete
app/assets/javascripts/issuable/auto_width_dropdown_select.js
if it isn't used anymore.