fix: browser detection in BackToTopFAB (#1502)
This commit is contained in:
parent
651a198898
commit
218039a0bc
|
|
@ -7,7 +7,7 @@ import { throttle } from "~/lib/utils"
|
|||
import { FABBase } from "../ui/FAB"
|
||||
|
||||
const isShouldShow = () =>
|
||||
typeof window !== undefined &&
|
||||
typeof window !== "undefined" &&
|
||||
document.documentElement.scrollTop > document.documentElement.clientHeight
|
||||
|
||||
export const BackToTopFAB = () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue