Skip to content

Commit

Permalink
Fix #5661: Dialog footerClassName (#5663)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 30, 2023
1 parent 7fe0597 commit d646b90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/lib/dialog/DialogBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const classes = {
headerTitle: 'p-dialog-title',
headerIcons: 'p-dialog-header-icons',
content: ({ props }) => classNames('p-dialog-content', props.contentClassName),
footer: 'p-dialog-footer',
footer: ({ props }) => classNames('p-dialog-footer', props.footerClassName),
mask: ({ props, maskVisibleState }) => {
const positions = ['center', 'left', 'right', 'top', 'top-left', 'top-right', 'bottom', 'bottom-left', 'bottom-right'];
const pos = positions.find((item) => item === props.position || item.replace('-', '') === props.position);
Expand Down Expand Up @@ -263,6 +263,7 @@ export const DialogBase = ComponentBase.extend({
draggable: true,
focusOnShow: true,
footer: null,
footerClassName: null,
header: null,
headerClassName: null,
headerStyle: null,
Expand Down

0 comments on commit d646b90

Please sign in to comment.