Skip to content

Commit d4b319d

Browse files
fix: emit expandAll event in shortcuts
1 parent 8222891 commit d4b319d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

code/core/src/manager-api/modules/shortcuts.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/* eslint-disable @typescript-eslint/naming-convention */
22
import { global } from '@storybook/global';
3-
import { FORCE_REMOUNT, PREVIEW_KEYDOWN, STORIES_COLLAPSE_ALL } from '@storybook/core/core-events';
3+
import {
4+
FORCE_REMOUNT,
5+
PREVIEW_KEYDOWN,
6+
STORIES_COLLAPSE_ALL,
7+
STORIES_EXPAND_ALL,
8+
} from '@storybook/core/core-events';
49

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

@@ -360,7 +365,7 @@ export const init: ModuleFn = ({ store, fullAPI, provider }) => {
360365
break;
361366
}
362367
case 'expandAll': {
363-
fullAPI.expandAll();
368+
fullAPI.emit(STORIES_EXPAND_ALL);
364369
break;
365370
}
366371
case 'remount': {

0 commit comments

Comments
 (0)