Skip to content

Commit

Permalink
* menu: fix super render execute twice times in menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Aug 27, 2024
1 parent 0cdbfce commit 5332f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/menu/src/component/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Menu<T extends MenuOptions = MenuOptions, S extends NestedListState
</menu>
);
}
return super.render(props);
return menuView;
}

static render<T extends unknown[] = []>(this: unknown, setting: MenuSetting<T> | undefined, args: T, defaultProps?: Partial<MenuOptions> & Attributes, thisObject?: unknown) {
Expand Down

0 comments on commit 5332f85

Please sign in to comment.