Skip to content

Commit

Permalink
fix(dialog): 修复DialogPlugin关闭后滚动问题
Browse files Browse the repository at this point in the history
修复DialogPlugin关闭后滚动问题

fix #484
  • Loading branch information
psaren committed Mar 15, 2022
1 parent 43ab80f commit 3d00b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dialog/RenderDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const RenderDialog: React.FC<RenderDialogProps> = (props) => {
const dialogOpenClass = `${prefixCls}__open`;
useDialogEsc(visible, wrap);

useEffect(() => {
useLayoutEffect(() => {
bodyOverflow.current = document.body.style.overflow;
bodyCssTextRef.current = document.body.style.cssText;
}, []);
Expand Down

0 comments on commit 3d00b89

Please sign in to comment.