Skip to content

Commit 80e8ac5

Browse files
removes unnecessary window.focus call
1 parent b960740 commit 80e8ac5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/components/modal/v2/parts/Container.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ const Container = ({ children }) => {
4545
useEffect(() => {
4646
if (transitionState === 'CLOSED') {
4747
contentWrapperRef.current.scrollTop = 0;
48-
} else if (transitionState === 'OPEN') {
49-
window.focus();
5048
}
5149
}, [transitionState]);
5250

0 commit comments

Comments
 (0)