Skip to content

Commit

Permalink
Work around codesandbox enum import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Feb 7, 2022
1 parent 9ff6496 commit c0bde88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/mui-base/src/ListboxUnstyled/types.ts
Expand Up @@ -11,7 +11,7 @@ export type UseListboxStrictProps<TOption> = Omit<
> &
Required<Pick<UseListboxProps<TOption>, UseListboxStrictPropsRequiredKeys>>;

export enum ActionTypes {
enum ActionTypes {
blur = 'blur',
focus = 'focus',
keyDown = 'keyDown',
Expand All @@ -20,6 +20,9 @@ export enum ActionTypes {
optionsChange = 'optionsChange',
}

// split declaration and export due to https://github.com/codesandbox/codesandbox-client/issues/6435
export { ActionTypes };

interface OptionClickAction<TOption> {
type: ActionTypes.optionClick;
option: TOption;
Expand Down

0 comments on commit c0bde88

Please sign in to comment.