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:42 +08:00
parent 719f1dae0e
commit b0bad7afe0
@@ -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,