From 646a540556e3ed28223375944637718530838b08 Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 26 Jan 2024 08:28:34 -0500 Subject: [PATCH] Fix useMove demo --- 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 (