Include select2.full.min.js file

Created on 8 July 2021, almost 3 years ago
Updated 5 May 2023, about 1 year ago

Problem/Motivation

There is no ability to include select2.full.min.js file instead of the default select2.min.js.

Proposed resolution

Add a settings form where user can choose what file should be included

✨ Feature request
Status

Needs work

Version

1.0

Component

User interface

Created by

πŸ‡ΊπŸ‡¦Ukraine eugene.brit Kyiv πŸ‡ΊπŸ‡¦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine eugene.brit Kyiv πŸ‡ΊπŸ‡¦

    Re-roll for 1.14

  • Issues and patches need to target dev.

  • Status changed to Needs work about 1 year ago
  • πŸ‡©πŸ‡ͺGermany chr.fritsch πŸ‡©πŸ‡ͺπŸ‡ͺπŸ‡ΊπŸŒ
    +++ b/tests/modules/select2_form_test/src/Form/Select2SettingsForm.php
    @@ -0,0 +1,175 @@
    +    if (\Drupal::hasService('library.libraries_directory_file_finder')) {
    +      $path = \Drupal::service('library.libraries_directory_file_finder')->find('select2');
    +    }
    +    elseif (function_exists('libraries_get_path')) {
    +      $path = libraries_get_path('select2');
    +    }
    

    No need for this. library.libraries_directory_file_finder is there since D8.9

    Also getting back the configure link would be nice.

Production build 0.69.0 2024