fix: only navigate to root when document is focus

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei 2024-10-13 12:45:31 +08:00
parent 719f1dae0e
commit b0bad7afe0
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ function FeedListImpl({ className, view }: { className?: string; view: number })
className="font-bold"
onClick={(e) => {
e.stopPropagation()
if (!document.hasFocus()) return
if (view !== undefined) {
navigateEntry({
entryId: null,