Loading js/select2.js +3 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ * Select2 behaviors. */ (function ($, Drupal, drupalSettings) { (function ($, Drupal, drupalSettings, once) { 'use strict'; /** Loading Loading @@ -69,8 +69,7 @@ */ detach: function (context, settings, trigger) { if (trigger === 'unload') { $(context).find('select') .removeOnce('select2') $(once.remove('select2', 'select', context)) .select2('destroy'); } }, Loading Loading @@ -190,4 +189,4 @@ }; })(jQuery, Drupal, drupalSettings); })(jQuery, Drupal, drupalSettings, once); select2_all.libraries.yml +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ drupal.select2: - core/jquery - core/drupal - core/drupalSettings - core/jquery.once - core/once - select2_all/select2 select2: Loading Loading
js/select2.js +3 −4 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ * Select2 behaviors. */ (function ($, Drupal, drupalSettings) { (function ($, Drupal, drupalSettings, once) { 'use strict'; /** Loading Loading @@ -69,8 +69,7 @@ */ detach: function (context, settings, trigger) { if (trigger === 'unload') { $(context).find('select') .removeOnce('select2') $(once.remove('select2', 'select', context)) .select2('destroy'); } }, Loading Loading @@ -190,4 +189,4 @@ }; })(jQuery, Drupal, drupalSettings); })(jQuery, Drupal, drupalSettings, once);
select2_all.libraries.yml +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ drupal.select2: - core/jquery - core/drupal - core/drupalSettings - core/jquery.once - core/once - select2_all/select2 select2: Loading