diff --git a/web/themes/contrib/civictheme/.storybook/preview.js b/web/themes/contrib/civictheme/.storybook/preview.js index 963867a5f..8c3f4a1ea 100644 --- a/web/themes/contrib/civictheme/.storybook/preview.js +++ b/web/themes/contrib/civictheme/.storybook/preview.js @@ -12,7 +12,7 @@ import { decoratorDocs } from '../components/00-base/storybook/storybook.docs.ut // Call attaching of behaviours. addDecorator((storyFn) => { - useEffect(() => Drupal.attachBehaviors(), []); + useEffect(() => Drupal.attachBehaviors()); return storyFn(); }); diff --git a/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js b/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js index f375d75e8..7537da721 100644 --- a/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js +++ b/web/themes/contrib/civictheme/civictheme_starter_kit/.storybook/preview.js @@ -12,7 +12,7 @@ import { decoratorDocs } from '../components_combined/00-base/storybook/storyboo // Call attaching of behaviours. addDecorator((storyFn) => { - useEffect(() => Drupal.attachBehaviors(), []); + useEffect(() => Drupal.attachBehaviors()); return storyFn(); });