Skip to content

Commit a751a88

Browse files
committed
fix: search - to the top
1 parent 50064a0 commit a751a88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/App.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function App() {
1717

1818
const toggleSearch = () => {
1919
setIsSearchVisible(!isSearchVisible);
20+
window.scrollTo({ top: 0, behavior: 'smooth' }); // Scroll to top
2021
};
2122

2223
return (

0 commit comments

Comments
 (0)