Skip to content

Commit

Permalink
fix useEffect return
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Dec 25, 2020
1 parent 7d3d4c1 commit 6dba709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function Dialog(props: IDialogChildProps) {

return scrollLocker?.unLock;
}
return null;
return () => {};
}, [visible]);

// Remove direct should also check the scroll bar update
Expand Down

0 comments on commit 6dba709

Please sign in to comment.