diff --git a/composer.json b/composer.json index 7a980b5..078c1c5 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,8 @@ "license": "GPL-2.0-or-later", "minimum-stability": "dev", "require": { - "drupal/core": "^9.2 || ^10" + "drupal/core": "^9.2 || ^10", + "drupal/jquery_ui_effects": "^2.0" }, "support": { "issues": "https://www.drupal.org/project/issues/field_group", diff --git a/field_group.install b/field_group.install index c3e3186..69dae4d 100644 --- a/field_group.install +++ b/field_group.install @@ -60,3 +60,10 @@ function field_group_update_8302() { [':link' => 'https://www.drupal.org/project/jquery_ui_accordion']); } } + +/** + * Install the 'jquery_ui_effects' module. + */ +function field_group_update_8303() { + \Drupal::service('module_installer')->install(['jquery_ui_effects']); +} diff --git a/src/Element/HtmlElement.php b/src/Element/HtmlElement.php index e32e1dd..3496d3a 100644 --- a/src/Element/HtmlElement.php +++ b/src/Element/HtmlElement.php @@ -69,7 +69,7 @@ class HtmlElement extends RenderElement { // Add jquery ui effects library for the blind effect. if ($element['#effect'] == 'blind') { - $element['#attached']['library'][] = 'core/jquery.ui.effects.blind'; + $element['#attached']['library'][] = 'jquery_ui_effects/blind'; } }