Skip to content

Commit

Permalink
* menu: set this to header and footer generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jun 13, 2024
1 parent 810d6ed commit 3207d74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/menu/src/component/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export class Menu<T extends MenuOptions = MenuOptions, S extends NestedListState
}

protected _renderWrapperHeader(props: RenderableProps<T>): ComponentChildren {
return <CustomContent key="header" content={props.header} />;
return <CustomContent key="header" content={props.header} generatorThis={this} />;
}

protected _renderWrapperFooter(props: RenderableProps<T>): ComponentChildren {
return <CustomContent key="footer" content={props.footer} />;
return <CustomContent key="footer" content={props.footer} generatorThis={this} />;
}

render(props: RenderableProps<T>) {
Expand Down

0 comments on commit 3207d74

Please sign in to comment.