This commit is contained in:
叶枫 2023-10-09 11:12:51 +08:00 committed by GitHub
parent 04c804eb2c
commit 604948e6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,7 @@ const Overview: React.FC = () => {
onChange={(e) => {
setSearch(e.target.value);
reportSearch(e.target.value);
if (sectionRef.current) {
if (sectionRef.current && searchBarAffixed) {
scrollIntoView(sectionRef.current, {
scrollMode: 'if-needed',
block: 'start',