fix: notice ui blocking
This commit is contained in:
parent
31c6cbc0a2
commit
d695656b8c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user