diff --git a/app/javascript/controllers/select2_tags_controller.js b/app/javascript/controllers/select2_tags_controller.js deleted file mode 100644 index f9fa069eba..0000000000 --- a/app/javascript/controllers/select2_tags_controller.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Controller } from "@hotwired/stimulus" -import $ from 'jquery'; -import "select2" - -export default class extends Controller { - // static values = { - // config: { type: Object, default: {} }, - // hideDropdown: { type: Boolean, default: false } - // }; - // - connect() { - const select2 = $(this.element).select2( - { tags: true} - ); - // - // if (this.hideDropdownValue) { - // select2.on('select2:open', function (e) { - // $('.select2-container--open .select2-dropdown--below').css('display','none'); - // }); - // } - // - // /** - // * This is a workaround to auto focus on the select2 input when it is opened. - // */ - // $(this.element).on('select2:open', function (e) { - // let select2Instance = $(e.target).data('select2'); - // if (select2Instance) { - // let searchField = select2Instance.dropdown.$search || select2Instance.selection.$search; - // if (searchField) { - // searchField.focus(); - // } - // } - // }); - } -}