Skip to content

armgit / vaul

Public Imported from GitHub
0

A drawer component for React.

Reset overflow on route change (#145)

Emil Kowalski47cc990b848f
diff --git a/src/index.tsx b/src/index.tsx
index f91319c..5c054c1 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -299,8 +299,6 @@ function Root({
restorePositionSetting();
};
}
-
- return restorePositionSetting;
}, []);
React.useEffect(() => {
@@ -553,6 +551,7 @@ function Root({
});
} else {
// Exit
+ reset(wrapper, 'overflow');
reset(wrapper, 'transform');
reset(wrapper, 'borderRadius');
set(wrapper, {