Skip to content
Snippets Groups Projects
Unverified Commit d695656b authored by GyDi's avatar GyDi
Browse files

fix: notice ui blocking

parent 31c6cbc0
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,9 @@ const Notice: NoticeInstance = (props) => { ...@@ -86,7 +86,9 @@ const Notice: NoticeInstance = (props) => {
}; };
(["info", "error", "success"] as const).forEach((type) => { (["info", "error", "success"] as const).forEach((type) => {
Notice[type] = (message, duration) => Notice({ type, message, duration }); Notice[type] = (message, duration) => {
setTimeout(() => Notice({ type, message, duration }), 0);
};
}); });
export default Notice; export default Notice;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment