From f65c1c0d263ed85f33dfb613d7f997a1c88f773b Mon Sep 17 00:00:00 2001 From: Melloware Date: Fri, 26 Jan 2024 08:33:12 -0500 Subject: [PATCH] Fix useMove demo (#5844) --- components/doc/hooks/usemove/verticaldoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/doc/hooks/usemove/verticaldoc.js b/components/doc/hooks/usemove/verticaldoc.js index ff5263ab54..d074e38515 100644 --- a/components/doc/hooks/usemove/verticaldoc.js +++ b/components/doc/hooks/usemove/verticaldoc.js @@ -14,7 +14,7 @@ import React from 'react'; import {useMove } from 'primereact/hooks'; export default function VerticalDemo() { - const { ref, y } = useMove({ initialValue: { y: 0.2 } }); + const { ref, y } = useMove({ initialValue: { y: 0.2 }, mode: 'vertical' }); return (
@@ -47,7 +47,7 @@ import React from 'react'; import {useMove } from 'primereact/hooks'; export default function VerticalDemo() { - const { ref, y } = useMove({ initialValue: { y: 0.2 } }); + const { ref, y } = useMove({ initialValue: { y: 0.2 }, mode: 'vertical' }); return (