Skip to content

Commit

Permalink
fix(Message): support ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed May 27, 2024
1 parent bf67d98 commit b1193cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const defaultProps: MessageActionOptionsType = {
theme: 'info',
visible: false,
zIndex: 5000,
context: document.body,
context: isBrowser ? document.body : null,
onDurationEnd: () => {},
onCloseBtnClick: () => {},
};
Expand Down

0 comments on commit b1193cd

Please sign in to comment.