Skip to content

Commit

Permalink
fix: emit expandAll event in shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
filipemelo2002 committed Aug 1, 2024
1 parent 8222891 commit d4b319d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions code/core/src/manager-api/modules/shortcuts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { global } from '@storybook/global';
import { FORCE_REMOUNT, PREVIEW_KEYDOWN, STORIES_COLLAPSE_ALL } from '@storybook/core/core-events';
import {
FORCE_REMOUNT,
PREVIEW_KEYDOWN,
STORIES_COLLAPSE_ALL,
STORIES_EXPAND_ALL,
} from '@storybook/core/core-events';

import type { ModuleFn } from '../lib/types';

Expand Down Expand Up @@ -360,7 +365,7 @@ export const init: ModuleFn = ({ store, fullAPI, provider }) => {
break;
}
case 'expandAll': {
fullAPI.expandAll();
fullAPI.emit(STORIES_EXPAND_ALL);
break;
}
case 'remount': {
Expand Down

0 comments on commit d4b319d

Please sign in to comment.