Skip to content

Commit

Permalink
* modal: fix footer not hide when no actions to show.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Dec 17, 2024
1 parent e85ba4f commit e0349ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/modal/src/vanilla/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class Modal<T extends ModalOptions = ModalOptions> extends ModalBase<T> {
content = <div className={classes('modal-body', customOptions.bodyClass)}>{content}</div>;
}
const actionItems: ToolbarItemOptions[] = [];
(Array.isArray(actions) ? actions : [actions]).forEach((item) => {
(Array.isArray(actions) ? actions : (actions ? [actions] : [])).forEach((item) => {
item = {
...(typeof item === 'string' ? {key: item} : item),
} as ToolbarItemOptions;
Expand Down

0 comments on commit e0349ae

Please sign in to comment.