Skip to content

Commit

Permalink
fix(dialog): fix dialog header is null or no,the close-button is not …
Browse files Browse the repository at this point in the history
…in the upper right corner
  • Loading branch information
Heising committed Nov 7, 2023
1 parent 01d33bf commit eed2f74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dialog/DialogCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ const DialogCard = forwardRef<HTMLDivElement, DialogCardProps>((props, ref) => {
return (
<span
className={`${componentCls}__close`}
style={{
marginLeft: 'auto',
}}
onClick={(e: React.MouseEvent<HTMLDivElement>) => onCloseBtnClick?.({ e })}
>
{closeIcon()}
Expand Down

0 comments on commit eed2f74

Please sign in to comment.