fix: only navigate to root when document is focus
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue