Skip to content

Commit

Permalink
fix: 修复 notification 获取实例问题 (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
honkinglin authored Mar 30, 2023
1 parent d8a748c commit 4ede534
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/notification/NotificationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,10 @@ export const fetchListInstance = (
zIndex={Number(zIndex)}
renderCallback={(instance) => {
listMap.set(placement, instance);
resolve(instance);
}}
/>,
attach,
);
requestAnimationFrame(() => {
resolve(listMap.get(placement));
});
}
});

0 comments on commit 4ede534

Please sign in to comment.