Skip to content

Commit

Permalink
增加搜索元素的延时
Browse files Browse the repository at this point in the history
  • Loading branch information
TCOTC committed Apr 18, 2024
1 parent 84ff0e3 commit 7a76108
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const SearchComponent = {
setTimeout(() => { // 等待一小段时间确保元素加载完全
inputElement.focus();
inputElement.select();
}, 100);
}, 300);
}
}
});
Expand Down Expand Up @@ -88,7 +88,7 @@ export default class PluginHighlight extends Plugin {
setTimeout(() => {
inputElement.focus();
inputElement.select();
}, 100);
}, 300);
}
}
});
Expand Down

0 comments on commit 7a76108

Please sign in to comment.